Function at 0x414840
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546a59
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x5b2390]
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
mov dword [ebp - 0x14], ecx
push str.http:__city.ip138.com_ip2city.asp
lea ecx, [ebp - 0x18]
call fcn.004048c0
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x220], ax
push 0x206
push 0
lea eax, [ebp - 0x21e]
push eax
call fcn.004b7bc0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.004048c0
mov byte [ebp - 4], 1
push 0x556814
lea ecx, [ebp - 0x224]
call fcn.004020c0
lea ecx, [ebp - 0x224]
call fcn.004049e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414904
lea ecx, [ebp - 0x224]
call fcn.004049e0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
mov ecx, esp
mov dword [ebp - 0x614], esp
lea eax, [ebp - 0x224]
push eax
call fcn.004048a0
mov dword [ebp - 0x618], eax
mov ecx, dword [ebp - 0x618]
mov dword [ebp - 0x61c], ecx
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x610], esp
lea edx, [ebp - 0x18]
push edx
call fcn.004048a0
mov dword [ebp - 0x620], eax
mov byte [ebp - 4], 1
call fcn.0043d900
add esp, 8
mov byte [ebp - 0x621], al
movzx eax, byte [ebp - 0x621]
test eax, eax
je 0x414ab0
mov byte [ebp - 0x328], 0
push 0x103
push 0
lea eax, [ebp - 0x327]
push eax
call fcn.004b7bc0
add esp, 0xc
push 1
lea ecx, [ebp - 0x3b4]
call fcn.00414f60
mov byte [ebp - 4], 3
push 0x40
push 1
lea ecx, [ebp - 0x224]
call fcn.004049e0
push eax
lea ecx, [ebp - 0x3b4]
call fcn.00415020
push 0x104
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x3b4]
call fcn.00414e60
lea ecx, [ebp - 0x3b4]
call fcn.00415140
lea eax, [ebp - 0x328]
push eax
call fcn.004b8510
add esp, 4
test eax, eax
jbe 0x414aa1
push 0x556810
lea eax, [ebp - 0x328]
push eax
call fcn.00414af0
add esp, 8
add eax, 1
mov dword [ebp - 0x3b8], eax
push 0x55680c
mov eax, dword [ebp - 0x3b8]
push eax
call fcn.00414af0
add esp, 8
mov dword [ebp - 0x3bc], eax
mov eax, dword [ebp - 0x3bc]
sub eax, dword [ebp - 0x3b8]
mov dword [ebp - 0x3c0], eax
mov eax, dword [ebp - 0x3b8]
add eax, dword [ebp - 0x3c0]
mov byte [eax], 0
mov eax, dword [ebp - 0x3b8]
mov dword [ebp - 0x3c4], eax
xor eax, eax
mov word [ebp - 0x5cc], ax
push 0x206
push 0
lea eax, [ebp - 0x5ca]
push eax
call fcn.004b7bc0
add esp, 0xc
lea eax, [ebp - 0x5cc]
push eax
mov ecx, dword [ebp - 0x3c4]
push ecx
call fcn.0040fc30
add esp, 8
mov eax, dword [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0x5cc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004bd0b4
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3b4]
call fcn.00414810
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.00404940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404940
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.004b7b5d
mov esp, ebp
pop ebp
ret 8