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

Disassembly:
push 0xffffffffffffffff
push 0x408ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x40e018]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebp
push esi
push edi
mov eax, dword [0x40e018]
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.gxcw.12sky2.com.cn
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 0x40b02c
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 0x405115
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
push ecx
push str._12sky_version_12sky1huaijiu_
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 0x40adb0
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0xc0]
call fcn.004054f0
test eax, eax
jne 0x4051ca
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xc0]
call fcn.004054f0
test eax, eax
jne 0x4051ca
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0xc0]
call fcn.004054f0
test eax, eax
jne 0x4051ca
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0xc0]
call fcn.004054f0
test eax, eax
jne 0x4051ca
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xc0]
call fcn.004054f0
test eax, eax
jne 0x4051ca
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0xc0]
call fcn.004054f0
test eax, eax
je 0x4051f5
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00404bf0
test eax, eax
jne 0x40522c
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 0x4054c0
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 [0x40fdcc]
add esp, 4
push eax
push edx
mov dword [0x40fdc8], eax
lea eax, [esp + 0xc4]
push 0x40afa8
push eax
call esi
mov ecx, dword [0x40fdb0]
add esp, 0x10
push 0
add ecx, 0x498
call sub.mfc90.dll_Ordinal_6584
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [0x40fdb0]
add ecx, 0x498
call sub.mfc90.dll_Ordinal_6559
mov ecx, dword [0x40fdb0]
push 1
add ecx, 0x498
call sub.mfc90.dll_Ordinal_6584
mov edx, dword [esp + 0x10]
push edx
mov ecx, 0x40fe30
call dword [sym.imp.mfc90.dll_Ordinal_1607]
test eax, eax
je 0x40548b
push str.UpDateLauncher.exe
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4053cf
push str.gxcw.12sky2.com.cn
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 0x40b02c
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 0x405363
lea eax, [esp + 0x24]
push str._12sky_version_12sky1huaijiu_
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 0x40adb0
push ecx
call esi
add esp, 0x1c
xor edi, edi
mov edi, edi
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0xc0]
call fcn.004054f0
test eax, eax
jne 0x4053ca
lea eax, [esp + 0x3c]
push eax
call ebp
inc edi
cmp edi, 5
jle 0x405390
lea ecx, [esp + 0x3c]
push ecx
call ebp
push 0
push str.Launcher_
push str.UpDateLauncher
jmp 0x4051ed
mov edi, 0x10
push str.gxcw.12sky2.com.cn
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 0x40b02c
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 0x4053fd
lea eax, [esp + 0x24]
push str._12sky_version_12sky1huaijiu_
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 0x40adb0
push eax
call esi
add esp, 0x1c
lea ecx, [esp + 0x3c]
push ecx
call ebp
xor esi, esi
nop
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0xc0]
call fcn.004054f0
test eax, eax
jne 0x40546a
lea eax, [esp + 0x3c]
push eax
call ebp
inc esi
cmp esi, 5
jle 0x405430
lea ecx, [esp + 0x3c]
push ecx
call ebp
push 0
push str.Launcher_
push 0x40aff0
jmp 0x4051ed
mov ecx, dword [0x40fdb0]
fld dword [0x40b108]
mov edx, dword [ecx]
fstp dword [0x40fe1c]
mov eax, dword [edx + 0x164]
call eax
jmp 0x4051f5
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.004076cc
add esp, 0x13c
ret