Function at 0x403a50
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x407248
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x40d018]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebp
push esi
push edi
mov eax, dword [0x40d018]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
push str.SERVERVER.INI
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_310]
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push str.download.gxcw.com
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 3
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0
push 0x409f40
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov eax, dword [esp + 0x24]
mov edi, 0x10
cmp dword [esp + 0x38], edi
jae 0x403b05
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
push ecx
push str._longzhu1_
push eax
lea edx, [esp + 0xc8]
push str.http:___s_s_s
push edx
call esi
mov eax, dword [esp + 0x2c]
add esp, 0x14
push eax
lea ecx, [esp + 0x40]
push 0x409cfc
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0x40]
call fcn.00403ee0
test eax, eax
jne 0x403bba
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x40]
call fcn.00403ee0
test eax, eax
jne 0x403bba
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x40]
call fcn.00403ee0
test eax, eax
jne 0x403bba
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0x40]
call fcn.00403ee0
test eax, eax
jne 0x403bba
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x40]
call fcn.00403ee0
test eax, eax
jne 0x403bba
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x40]
call fcn.00403ee0
test eax, eax
je 0x403be5
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004035e0
test eax, eax
jne 0x403c1c
push eax
push str.Launcher_
push str._Error::
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor eax, eax
jmp 0x403eb0
push 7
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_5997]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 4
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 3
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 5
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_5997]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 5
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 3
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR90.dll_atoi]
mov edx, dword [0x40edbc]
add esp, 4
push eax
push edx
mov dword [0x40edb8], eax
lea eax, [esp + 0xc4]
push 0x409ed0
push eax
call esi
mov ecx, dword [0x40eda0]
add esp, 0x10
push 0
add ecx, 0x2b8
call sub.mfc90.dll_Ordinal_6584
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [0x40eda0]
add ecx, 0x2b8
call sub.mfc90.dll_Ordinal_6559
mov ecx, dword [0x40eda0]
push 1
add ecx, 0x2b8
call sub.mfc90.dll_Ordinal_6584
mov edx, dword [esp + 0x10]
push edx
mov ecx, 0x40ee20
call dword [sym.imp.mfc90.dll_Ordinal_1607]
test eax, eax
je 0x403e7b
push str.UpDateLauncher.exe
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403dbf
push str.download.gxcw.com
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0
push 0x409f40
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], edi
jae 0x403d53
lea eax, [esp + 0x24]
push str._longzhu1_
push eax
lea eax, [esp + 0xc4]
push str.http:___s_sUpDateLauncher.exe
push eax
call esi
push str.UpDateLauncher.exe
lea ecx, [esp + 0x50]
push 0x409cfc
push ecx
call esi
add esp, 0x1c
xor edi, edi
mov edi, edi
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0x40]
call fcn.00403ee0
test eax, eax
jne 0x403dba
lea eax, [esp + 0x3c]
push eax
call ebp
inc edi
cmp edi, 5
jle 0x403d80
lea ecx, [esp + 0x3c]
push ecx
call ebp
push 0
push str.Launcher_
push str.UpDateLauncher
jmp 0x403bdd
mov edi, 0x10
push str.download.gxcw.com
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0
push 0x409f40
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], edi
jae 0x403ded
lea eax, [esp + 0x24]
push str._longzhu1_
push eax
lea edx, [esp + 0xc4]
push str.http:___s_sLauncher.exe_
push edx
call esi
push str.Launcher.exe_
lea eax, [esp + 0x50]
push 0x409cfc
push eax
call esi
add esp, 0x1c
lea ecx, [esp + 0x3c]
push ecx
call ebp
xor esi, esi
nop
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0x40]
call fcn.00403ee0
test eax, eax
jne 0x403e5a
lea eax, [esp + 0x3c]
push eax
call ebp
inc esi
cmp esi, 5
jle 0x403e20
lea ecx, [esp + 0x3c]
push ecx
call ebp
push 0
push str.Launcher_
push 0x409f18
jmp 0x403bdd
mov ecx, dword [0x40eda0]
fld dword [0x40a064]
mov edx, dword [ecx]
fstp dword [0x40ee0c]
mov eax, dword [edx + 0x164]
call eax
jmp 0x403be5
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, 1
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00405fb6
add esp, 0x13c
ret