Function at 0x41739c
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4893e8
mov eax, dword fs:[0]
push eax
mov eax, 0x12d4
call fcn.0044f6d0
mov eax, dword [0x4a3070]
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
and dword [ebp - 0x1294], 0
lea eax, [ebp - 0x12e0]
push eax
call fcn.0040379a
and dword [ebp - 4], 0
push 0x48ff54
lea esi, [ebp - 0x1234]
call fcn.004034dc
mov eax, esi
push eax
lea eax, [ebp - 0x12e0]
push eax
lea ebx, [ebp - 0x12a0]
mov byte [ebp - 4], 1
call fcn.0040b4e0
push 0
push 1
mov byte [ebp - 4], 0
call fcn.00403d0d
push 0x48ff6c
lea esi, [ebp - 0x1234]
call fcn.004034dc
mov eax, esi
push eax
lea eax, [ebp - 0x12e0]
push eax
lea ebx, [ebp - 0x12a0]
mov byte [ebp - 4], 2
call fcn.0040b4e0
xor edi, edi
push edi
push 1
mov byte [ebp - 4], 0
call fcn.00403d0d
sub esp, 0x20
mov dword [ebp - 0x12a4], esp
mov eax, esp
lea ecx, [ebp - 0x12e0]
push ecx
push eax
call fcn.0040b167
lea ecx, [ebp - 0x12c0]
call fcn.00416b45
add esp, 0x20
mov byte [ebp - 4], 3
cmp dword [ebp - 0x12a8], edi
jne 0x41750e
push str.__s._d_
lea eax, [ebp - 0x1218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x800
push str.get_client_modules_failed
lea eax, [ebp - 0x1218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrNCatW]
push 0x18e
push str..upgrade.cpp
lea eax, [ebp - 0x1218]
push eax
push edi
call sym.gxbus32.exe_E7248975
add esp, 0x10
lea esi, [ebp - 0x12c0]
call fcn.0041824a
push dword [ebp - 0x12c0]
call fcn.004437e4
or dword [ebp - 4], 0xffffffff
pop ecx
lea eax, [ebp - 0x12e0]
push eax
call fcn.00408b66
mov eax, edi
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.0044302b
leave
ret
lea eax, [ebp - 0x126c]
push 2
push eax
call fcn.0040fdb4
lea eax, [ebp - 0x1288]
push 3
push eax
mov byte [ebp - 4], 4
call fcn.0040fdb4
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x12ac]
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x1298], eax
mov eax, dword [ebp - 0x12c0]
mov dword [ebp - 0x1290], edi
mov dword [ebp - 0x129c], eax
mov eax, dword [ebp - 0x129c]
mov esi, dword [ebp - 0x12ac]
cmp eax, edi
je 0x417573
cmp eax, dword [ebp - 0x12c0]
je 0x417578
call fcn.004437aa
cmp dword [ebp - 0x1298], esi
je 0x417767
lea esi, [ebp - 0x129c]
call fcn.0043524c
mov edi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
add edi, 0x1c
push eax
mov dword [ebp - 0x12a4], edi
call fcn.00444cd0
mov ecx, dword [ebp - 0x1284]
add esp, 0xc
cmp dword [ebp - 0x1270], 8
jae 0x4175cd
lea ecx, [ebp - 0x1284]
cmp dword [ebp - 0x1254], 8
mov eax, dword [ebp - 0x1268]
jae 0x4175e2
lea eax, [ebp - 0x1268]
lea edx, [ebp - 0x218]
push edx
push ecx
push eax
lea esi, [ebp - 0x129c]
call fcn.0043524c
add eax, 0x1c
call fcn.0041da01
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call esi
test eax, eax
je 0x417755
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x417636
lea edi, [ebp - 0x218]
call fcn.0041b9e3
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x12a4]
push 0
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
push str.__s._d_
lea eax, [ebp - 0x1218]
push eax
call ebx
push 0x800
push str.uprade_v2__3v:__s___s__d__d
lea eax, [ebp - 0x1218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrNCatW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x218]
push eax
push edi
push 0x1a5
push str..upgrade.cpp
lea eax, [ebp - 0x1218]
push eax
push 0
call sym.gxbus32.exe_E7248971
add esp, 0x20
lea esi, [ebp - 0x129c]
call fcn.0043524c
push eax
lea eax, [ebp - 0x1234]
push eax
call fcn.0040121b
pop ecx
pop ecx
mov byte [ebp - 4], 6
or dword [ebp - 0x1294], 1
call fcn.004184f1
test al, al
jne 0x417719
call fcn.0043524c
push str.pomqc3.dll
call fcn.004034b7
test eax, eax
je 0x417719
call fcn.0043524c
push str.libcurl32.dll
call fcn.004034b7
test eax, eax
je 0x417719
call fcn.0043524c
push str.libeay32.dll
call fcn.004034b7
test eax, eax
je 0x417719
call fcn.0043524c
push str.ssleay32.dll
call fcn.004034b7
mov byte [ebp - 0x1289], 0
test eax, eax
jne 0x417720
mov byte [ebp - 0x1289], 1
mov dword [ebp - 4], 5
test byte [ebp - 0x1294], 1
je 0x417746
and dword [ebp - 0x1294], 0xfffffffe
push 0
push 1
lea esi, [ebp - 0x1234]
call fcn.00403d0d
cmp byte [ebp - 0x1289], 0
je 0x417755
inc dword [ebp - 0x1290]
lea esi, [ebp - 0x129c]
call fcn.00440f2d
xor edi, edi
jmp 0x41755b
cmp dword [ebp - 0x1290], 5
jne 0x41790f
push 0x48ff84
lea eax, [ebp - 0x1234]
push 3
push eax
call fcn.00421651
add esp, 0xc
push 8
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1230]
pop esi
cmp dword [ebp - 0x121c], esi
jae 0x4177a5
lea eax, [ebp - 0x1230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4178c0
mov eax, dword [ebp - 0x1230]
cmp dword [ebp - 0x121c], esi
jae 0x4177c8
lea eax, [ebp - 0x1230]
push eax
push str.__s___i
lea ecx, [ebp - 0x1250]
call fcn.0041dbb7
pop ecx
pop ecx
mov eax, dword [ebp - 0x124c]
cmp dword [ebp - 0x1238], esi
jae 0x4177ef
lea eax, [ebp - 0x124c]
push eax
call fcn.0041ca8f
mov dword [ebp - 0x1290], eax
mov byte [ebp - 4], 9
cmp eax, edi
je 0x417851
cmp eax, 0xffffffff
je 0x417851
lea eax, [ebp - 0x1290]
call fcn.00407285
xor ebx, ebx
push edi
inc ebx
push ebx
lea esi, [ebp - 0x1250]
call fcn.00403d0d
push edi
push ebx
lea esi, [ebp - 0x1234]
call fcn.00403d0d
push edi
push ebx
lea esi, [ebp - 0x1288]
call fcn.00403d0d
push edi
push ebx
lea esi, [ebp - 0x126c]
call fcn.00403d0d
mov edi, ebx
jmp 0x4174cb
push str.__s._d_
lea eax, [ebp - 0x1218]
push eax
call ebx
push 0x800
push str.execute_v3_main_file_failed:__s
lea eax, [ebp - 0x1218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrNCatW]
mov eax, dword [ebp - 0x124c]
cmp dword [ebp - 0x1238], esi
jae 0x41788a
lea eax, [ebp - 0x124c]
push eax
push 0x1b4
push str..upgrade.cpp
lea eax, [ebp - 0x1218]
push eax
push edi
call sym.gxbus32.exe_E7248975
add esp, 0x14
lea eax, [ebp - 0x1290]
call fcn.00407285
push edi
push 1
lea esi, [ebp - 0x1250]
call fcn.00403d0d
jmp 0x4178ff
push str.__s._d_
lea eax, [ebp - 0x1218]
push eax
call ebx
push 0x800
push str._DoUpgradeV2ToV3_failed__main_file_not_copied
lea eax, [ebp - 0x1218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrNCatW]
push 0x1b6
push str..upgrade.cpp
lea eax, [ebp - 0x1218]
push eax
push edi
call sym.gxbus32.exe_E7248975
add esp, 0x10
push edi
push 1
lea esi, [ebp - 0x1234]
call fcn.00403d0d
jmp 0x417954
push str.__s._d_
lea eax, [ebp - 0x1218]
push eax
call ebx
push 0x800
push str._DoUpgradeV2ToV3_failed__nNecessaryCopyied_lt_5:__d
lea eax, [ebp - 0x1218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrNCatW]
push dword [ebp - 0x1290]
lea eax, [ebp - 0x1218]
push 0x1b9
push str..upgrade.cpp
push eax
push edi
call sym.gxbus32.exe_E7248975
add esp, 0x14
push edi
push 1
lea esi, [ebp - 0x1288]
call fcn.00403d0d
push edi
push 1
lea esi, [ebp - 0x126c]
call fcn.00403d0d
jmp 0x4174cb