Function at 0x43e450
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587af9
mov eax, dword fs:[0]
push eax
sub esp, 0x54c
mov eax, dword [0x5ea6c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x458], 0
push str.downlic
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
call fcn.0040ea80
cmp byte [ebp + 8], 0
mov dword [ebp - 4], 0
je 0x43e4c8
push str.updatelic
lea ecx, [ebp - 0x468]
call fcn.0040ea80
call fcn.00428550
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x468]
push 0
cmovae ecx, dword [ebp - 0x468]
push ecx
push 1
push 0
push str.begin
mov ecx, eax
call fcn.00480150
call fcn.0043efe0
mov ecx, eax
call fcn.00416760
test eax, eax
je 0x43e618
call fcn.0047f3e0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x43e5e2
push 0x4a
push str.d:jenkins.jenkinsworkspacemgame_security_security_maineppinstepp.cpp
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], al
call fcn.0040e990
push 3
push 0x597c7c
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 1
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.0040e990
push 0x72
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x558]
call fcn.004080a0
mov esi, eax
push str.CGlobalCfgMgr_false
push esi
mov byte [ebp - 4], 3
call fcn.00409170
add esp, 8
call fcn.0047f3e0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x558]
call fcn.00409700
lea ecx, [ebp - 0x450]
call fcn.00408b80
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0
call fcn.00408b80
call fcn.00428550
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x468]
push 0
cmovae ecx, dword [ebp - 0x468]
push ecx
push 1
push str.ex1cfg_fail
push str.fail
mov ecx, eax
call fcn.00480150
xor bh, bh
jmp 0x43ef5c
xor bh, bh
call fcn.0043efe0
lea ecx, [ebp - 0x4b0]
push ecx
mov ecx, eax
call fcn.00416690
mov byte [ebp - 4], 4
call fcn.0043efe0
lea ecx, [ebp - 0x498]
push ecx
mov ecx, eax
call fcn.004166b0
cmp dword [ebp - 0x4a0], 0
mov byte [ebp - 4], 5
je 0x43edab
cmp dword [ebp - 0x488], 0
je 0x43edab
lea eax, [ebp - 0x4b0]
push eax
call fcn.0043d630
add esp, 4
cmp eax, 1
jne 0x43e6a9
call fcn.00428550
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x468]
push 0
cmovae ecx, dword [ebp - 0x468]
push ecx
push 1
push 0
push str.latest
mov ecx, eax
call fcn.00480150
mov bh, 1
jmp 0x43eeb2
cmp eax, 2
jne 0x43e6d5
call fcn.00428550
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x468]
push 0
cmovae ecx, dword [ebp - 0x468]
push ecx
push 1
push 0
push str.lic_update_down
jmp 0x43e6fa
call fcn.00428550
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x468]
push 0
cmovae ecx, dword [ebp - 0x468]
push ecx
push 1
push 0
push str.lic_normal_down
mov ecx, eax
call fcn.00480150
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005536e0
add esp, 0xc
push str.dataepp_license.lic
call fcn.00428170
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 7
mov word [ebp - 0x480], ax
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x420]
push eax
mov byte [ebp - 4], 9
call esi
test eax, eax
je 0x43e7c1
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x480]
call fcn.0040ea80
lea ecx, [ebp - 0x420]
add ecx, 0xfffffffe
nop
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x43e780
mov eax, dword [0x599400]
mov dword [ecx], eax
mov eax, dword [0x599404]
mov dword [ecx + 4], eax
mov ax, word [0x599408]
mov word [ecx + 8], ax
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x43e7c1
lea eax, [ebp - 0x420]
push eax
call fcn.0042d900
add esp, 4
call fcn.0047f3e0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x43e8a7
push 0x4a
push str.d:jenkins.jenkinsworkspacemgame_security_security_maineppinstepp.cpp
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], al
call fcn.0040e990
push 3
push 0x597c7c
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
call fcn.0040e990
push 0xa1
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x558]
call fcn.004080a0
mov esi, eax
push str.down_license_file
push esi
mov byte [ebp - 4], 0xc
call fcn.004062f0
lea eax, [ebp - 0x420]
push eax
push esi
call fcn.004062f0
add esp, 0x10
call fcn.0047f3e0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x558]
call fcn.00409700
lea ecx, [ebp - 0x438]
call fcn.00408b80
lea ecx, [ebp - 0x450]
call fcn.00408b80
lea ecx, [ebp - 0x4bc]
call fcn.00418490
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x4b8]
call fcn.00407e70
cmp dword [ebp - 0x484], 0x10
lea edi, [ebp - 0x498]
mov byte [ebp - 4], 0xe
cmovae edi, dword [ebp - 0x498]
call fcn.0040a770
mov ecx, eax
test ecx, ecx
je 0x43efb6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4b4], eax
mov byte [ebp - 4], 0xf
test edi, edi
je 0x43e93d
test edi, 0xffff0000
jne 0x43e921
movzx eax, di
lea ecx, [ebp - 0x4b4]
push eax
call fcn.00412860
jmp 0x43e9a0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [eax - 1]
mov eax, dword [ebp - 0x4b4]
jmp 0x43e93f
xor esi, esi
test esi, esi
jle 0x43e995
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x43e966
push esi
lea ecx, [ebp - 0x4b4]
call fcn.0040c8c0
mov eax, dword [ebp - 0x4b4]
push esi
push eax
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x4b4]
cmp esi, dword [eax - 8]
jg 0x43efc0
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x4b4]
mov word [eax + esi*2], cx
jmp 0x43e9a0
lea ecx, [ebp - 0x4b4]
call fcn.0040a610
sub esp, 0x28
mov byte [ebp - 4], 0x10
mov eax, esp
push 0
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x4bc]
push 0x1388
push eax
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b4]
push eax
call fcn.00419010
mov edx, dword [ebp - 0x4b4]
or edi, 0xffffffff
add esp, 0x3c
mov esi, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x43e9f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4b8]
mov eax, edi
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43ea17
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x43ec77
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.0041a390
lea eax, [ebp - 0x4b0]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.004261e0
add esp, 8
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x438]
mov bl, al
call fcn.00408bd0
test bl, bl
je 0x43ebd0
cmp dword [ebp - 0x46c], 8
lea eax, [ebp - 0x480]
cmovae eax, dword [ebp - 0x480]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43eb90
cmp dword [ebp - 0x46c], 8
lea eax, [ebp - 0x480]
push 1
cmovae eax, dword [ebp - 0x480]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x43eb90
call fcn.0047f3e0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x43eb90
push 0x4a
push str.d:jenkins.jenkinsworkspacemgame_security_security_maineppinstepp.cpp
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], al
call fcn.0040e990
push 3
push 0x597c7c
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
call fcn.0040e990
push 0xaf
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x558]
call fcn.004080a0
mov esi, eax
push str.rename_new_license_file_failed
push esi
mov byte [ebp - 4], 0x14
call fcn.004062f0
add esp, 8
call fcn.0047f3e0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x558]
call fcn.00409700
lea ecx, [ebp - 0x438]
call fcn.00408b80
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xd
call fcn.00408b80
cmp byte [ebp + 8], 0
je 0x43eba4
call fcn.004166d0
push 1
mov ecx, eax
call fcn.00412c40
mov bh, 1
call fcn.00428550
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x468]
push 0
cmovae ecx, dword [ebp - 0x468]
push ecx
push 1
push 0
push str.down_succ
jmp 0x43ed79
call fcn.0047f3e0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x43ed54
push 0x4a
push str.d:jenkins.jenkinsworkspacemgame_security_security_maineppinstepp.cpp
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], al
call fcn.0040e990
push 3
push 0x597c7c
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
call fcn.0040e990
push 0xbd
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x558]
call fcn.004080a0
mov esi, eax
mov byte [ebp - 4], 0x17
push str.checkmd5_license_failed
jmp 0x43ed19
call fcn.0047f3e0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x43ed54
push 0x4a
push str.d:jenkins.jenkinsworkspacemgame_security_security_maineppinstepp.cpp
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], al
call fcn.0040e990
push 3
push 0x597c7c
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
call fcn.0040e990
push 0xc2
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x558]
call fcn.004080a0
mov esi, eax
mov byte [ebp - 4], 0x1a
push str.down_license_failed
push esi
call fcn.004062f0
add esp, 8
call fcn.0047f3e0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x558]
call fcn.00409700
lea ecx, [ebp - 0x438]
call fcn.00408b80
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xd
call fcn.00408b80
call fcn.00428550
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x468]
push 0
cmovae ecx, dword [ebp - 0x468]
push ecx
push 1
push 0
push str.down_fail
mov ecx, eax
call fcn.00480150
mov edx, dword [ebp - 0x4bc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x43ed9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x480]
call fcn.00408bd0
jmp 0x43eeb2
call fcn.00428550
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x468]
push 0
cmovae ecx, dword [ebp - 0x468]
push ecx
push 1
push str.ex1no_url
push str.fail
mov ecx, eax
call fcn.00480150
call fcn.0047f3e0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x43eeb0
push 0x4a
push str.d:jenkins.jenkinsworkspacemgame_security_security_maineppinstepp.cpp
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], al
call fcn.0040e990
push 3
push 0x597c7c
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 6
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
call fcn.0040e990
push 0x7d
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x558]
call fcn.004080a0
mov esi, eax
push str.CGlobalCfgMgr_md5
push esi
mov byte [ebp - 4], 8
call fcn.00409170
add esp, 8
call fcn.0047f3e0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x558]
call fcn.00409700
lea ecx, [ebp - 0x438]
call fcn.00408b80
lea ecx, [ebp - 0x450]
call fcn.00408b80
xor bh, bh
mov edx, dword [ebp - 0x484]
cmp edx, 0x10
jb 0x43eeec
mov ecx, dword [ebp - 0x498]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43eee2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43efca
push edx
push ecx
call fcn.0051238c
add esp, 8
mov edx, dword [ebp - 0x49c]
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x484], 0xf
mov byte [ebp - 0x498], 0
cmp edx, 0x10
jb 0x43ef41
mov ecx, dword [ebp - 0x4b0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43ef37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43efcf
push edx
push ecx
call fcn.0051238c
add esp, 8
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x49c], 0xf
mov byte [ebp - 0x4b0], 0
mov edx, dword [ebp - 0x454]
cmp edx, 8
jb 0x43ef98
mov ecx, dword [ebp - 0x468]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43ef8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43efd4
push edx
push ecx
call fcn.0051238c
add esp, 8
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00512634
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00409c80
push 0x80070057
call fcn.00409c80
call fcn.00556b30
call fcn.00556b30
call fcn.00556b30
int3