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

Disassembly:
push 0xffffffffffffffff
push 0x407b18
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.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 0x40a004
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 0x404085
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 0x409d8c
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0xc0]
call fcn.00404460
test eax, eax
jne 0x40413a
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xc0]
call fcn.00404460
test eax, eax
jne 0x40413a
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0xc0]
call fcn.00404460
test eax, eax
jne 0x40413a
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0xc0]
call fcn.00404460
test eax, eax
jne 0x40413a
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xc0]
call fcn.00404460
test eax, eax
jne 0x40413a
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0xc0]
call fcn.00404460
test eax, eax
je 0x404165
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00403b60
test eax, eax
jne 0x40419c
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 0x404430
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 0x409f88
push eax
call esi
mov ecx, dword [0x40eda0]
add esp, 0x10
push 0
add ecx, 0x498
call sub.mfc90.dll_Ordinal_6584
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [0x40eda0]
add ecx, 0x498
call sub.mfc90.dll_Ordinal_6559
mov ecx, dword [0x40eda0]
push 1
add ecx, 0x498
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 0x4043fb
push str.UpDateLauncher.exe
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40433f
push str.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 0x40a004
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 0x4042d3
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 0x409d8c
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.00404460
test eax, eax
jne 0x40433a
lea eax, [esp + 0x3c]
push eax
call ebp
inc edi
cmp edi, 5
jle 0x404300
lea ecx, [esp + 0x3c]
push ecx
call ebp
push 0
push str.Launcher_
push str.UpDateLauncher
jmp 0x40415d
mov edi, 0x10
push str.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 0x40a004
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 0x40436d
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 0x409d8c
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.00404460
test eax, eax
jne 0x4043da
lea eax, [esp + 0x3c]
push eax
call ebp
inc esi
cmp esi, 5
jle 0x4043a0
lea ecx, [esp + 0x3c]
push ecx
call ebp
push 0
push str.Launcher_
push 0x409fd0
jmp 0x40415d
mov ecx, dword [0x40eda0]
fld dword [0x40a134]
mov edx, dword [ecx]
fstp dword [0x40ee0c]
mov eax, dword [edx + 0x164]
call eax
jmp 0x404165
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.00406768
add esp, 0x13c
ret