Function at 0x4078f0
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x413a71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [0x41b5c0]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x120]
mov dword [esp + 0x13c], eax
call dword [0x4151b4]
mov ebx, dword [0x415110]
xor edi, edi
mov dword [esp + 0x148], edi
call ebx
mov ebp, eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x124]
push ecx
mov ecx, esi
call fcn.00402f80
mov byte [esp + 0x13], al
call ebx
mov ebx, eax
mov al, byte [esp + 0x13]
sub ebx, ebp
test al, al
jne 0x407990
cmp dword [esi + 0xa0], 8
jb 0x40797e
mov esi, dword [esi + 0x8c]
push esi
call dword [0x4150ac]
jmp 0x407aab
add esi, 0x8c
push esi
call dword [0x4150ac]
jmp 0x407aab
lea ecx, [esp + 0x18]
call fcn.00404330
mov dword [esp + 0x1c], eax
mov byte [eax + 0x49], 1
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], eax
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x148], 1
call fcn.00404330
mov dword [esp + 0x28], eax
mov byte [eax + 0x49], 1
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 8], eax
mov dword [esp + 0x2c], edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x415565
mov byte [esp + 0x168], 2
call dword [0x41516c]
lea edx, [esp + 0x13c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0040c1f0
add esp, 0x24
test al, al
mov byte [esp + 0x13], al
jne 0x407aca
cmp dword [esi + 0xa0], 8
jb 0x407a38
mov esi, dword [esi + 0x8c]
jmp 0x407a3e
add esi, 0x8c
push esi
call dword [0x4150ac]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x154], 1
call fcn.00407300
mov edx, dword [esp + 0x28]
push edx
call fcn.00412910
mov eax, dword [esp + 0x20]
add esp, 4
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov ecx, dword [eax]
push ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 0
call fcn.00407300
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00412910
add esp, 4
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x120]
mov dword [esp + 0x148], 0xffffffff
call dword [0x41515c]
xor al, al
jmp 0x4080ca
push str.net_error
lea ecx, [esp + 0x34]
call dword [0x41516c]
lea edx, [esp + 0x30]
lea edi, [esi + 0x1cc]
push edx
mov ecx, edi
mov byte [esp + 0x14c], 3
call fcn.00405110
mov ebp, dword [esp + 0x78]
lea ecx, [esp + 0x30]
mov dword [eax], ebp
mov byte [esp + 0x148], 2
call dword [0x41515c]
push str.xml_time
lea ecx, [esp + 0x34]
call dword [0x41516c]
lea eax, [esp + 0x30]
push eax
mov ecx, edi
mov byte [esp + 0x14c], 4
call fcn.00405110
lea ecx, [esp + 0x30]
mov dword [eax], ebx
mov byte [esp + 0x148], 2
call dword [0x41515c]
lea ecx, [esp + 0x30]
push str.xml_parse
xor ebx, ebx
call dword [0x41516c]
cmp ebp, ebx
jne 0x407b73
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
mov byte [esp + 0x14c], 5
call fcn.00405110
mov dword [eax], 1
jmp 0x407b89
lea edx, [esp + 0x30]
push edx
mov ecx, edi
mov byte [esp + 0x14c], 6
call fcn.00405110
mov dword [eax], ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x148], 2
call dword [0x41515c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov eax, dword [esi + 0xbc]
lea edi, [esi + 0xa4]
mov ebx, 8
cmp eax, ebx
mov byte [esp + 0x148], 8
jb 0x407bd5
mov eax, dword [edi + 4]
jmp 0x407bd8
lea eax, [edi + 4]
push eax
call dword [0x415350]
test eax, eax
je 0x407c24
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x30], esp
push edi
push eax
call fcn.00409050
lea ecx, [esp + 0x70]
add esp, 8
push ecx
call fcn.0040c070
add esp, 0x20
test al, al
jne 0x407c24
lea ecx, [esp + 0x4c]
call fcn.004051b0
cmp dword [edi + 0x18], ebx
jb 0x407c1a
mov edi, dword [edi + 4]
jmp 0x407c1d
add edi, 4
push edi
call dword [0x4150ac]
push 1
push 3
lea ecx, [esp + 0xa0]
call dword [0x4151f0]
mov eax, dword [esi + 0xd8]
mov ebp, 0x10
cmp eax, ebp
mov byte [esp + 0x148], 9
jb 0x407c54
mov eax, dword [esi + 0xc4]
jmp 0x407c5a
lea eax, [esi + 0xc4]
push eax
lea ecx, [esp + 0x80]
call dword [0x41516c]
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 0xa
call fcn.004071e0
mov edi, dword [eax + 4]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x148], 9
call dword [0x41515c]
cmp dword [esi + 0xd8], ebp
jb 0x407ca3
mov eax, dword [esi + 0xc4]
jmp 0x407ca9
lea eax, [esi + 0xc4]
push eax
lea ecx, [esp + 0x60]
call dword [0x41516c]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 0xb
call fcn.004071e0
cmp edi, dword [eax + 8]
lea ecx, [esp + 0x5c]
setne bl
mov byte [esp + 0x148], 9
call dword [0x41515c]
test bl, bl
je 0x407e1a
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x50]
push edx
push 1
push edi
mov ecx, esi
call fcn.004052c0
test al, al
jne 0x407d0a
add edi, 0xc
jmp 0x407c93
push edi
lea ecx, [esp + 0x34]
call fcn.004068e0
cmp dword [esi + 0xd8], ebp
jb 0x407d24
mov eax, dword [esi + 0xc4]
jmp 0x407d2a
lea eax, [esi + 0xc4]
push eax
lea ecx, [esp + 0x60]
call dword [0x41516c]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x150], 0xc
call fcn.004071e0
mov ecx, eax
call fcn.00402b20
lea ecx, [esp + 0x5c]
mov byte [esp + 0x148], 9
call dword [0x41515c]
mov edi, dword [esp + 0x34]
xor ebx, ebx
mov ebp, dword [esp + 0x38]
push str.upgrade_request
lea ecx, [esp + 0x60]
call dword [0x41516c]
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0x14c], 0x10
call dword [0x4151ec]
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esi + 0x1c0]
mov byte [esp + 0x150], 0x11
call fcn.00402530
mov ecx, eax
call dword [0x4151b8]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x148], 0x10
call dword [0x41515c]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x148], 9
call dword [0x41515c]
cmp dword [esp + 0x2c], ebx
je 0x407f88
lea edx, [esp + 0x24]
push edx
sub esp, 0x1c
mov eax, esp
add esi, 0x88
mov dword [esp + 0x34], esp
push esi
push eax
call fcn.00409050
add esp, 8
call fcn.0040bae0
add esp, 0x20
mov byte [esp + 0x13], al
jmp 0x407fa6
lea ecx, [esp + 0x30]
call fcn.00402940
cmp dword [esi + 0xd8], ebp
jb 0x407e33
mov eax, dword [esi + 0xc4]
jmp 0x407e39
lea eax, [esi + 0xc4]
push eax
lea ecx, [esp + 0x60]
call dword [0x41516c]
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 0xd
call fcn.004071e0
mov edi, dword [eax + ebp + 4]
add eax, ebp
lea ecx, [esp + 0x5c]
mov byte [esp + 0x148], 9
call dword [0x41515c]
cmp dword [esi + 0xd8], ebp
jb 0x407e82
mov eax, dword [esi + 0xc4]
jmp 0x407e88
lea eax, [esi + 0xc4]
push eax
lea ecx, [esp + 0x80]
call dword [0x41516c]
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 0xe
call fcn.004071e0
mov ecx, dword [eax + ebp + 8]
add eax, ebp
cmp edi, ecx
lea ecx, [esp + 0x7c]
setne bl
mov byte [esp + 0x148], 9
call dword [0x41515c]
test bl, bl
je 0x407efa
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x50]
push edx
push 0
push edi
mov ecx, esi
call fcn.004052c0
test al, al
je 0x407ef2
push edi
lea ecx, [esp + 0x34]
call fcn.004068e0
add edi, 0xc
jmp 0x407e72
mov edi, dword [esp + 0x34]
xor ebx, ebx
cmp edi, ebx
je 0x407d6f
mov ebp, dword [esp + 0x38]
mov ecx, ebp
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
je 0x407d73
cmp dword [esi + 0xd8], 0x10
jb 0x407f3b
mov eax, dword [esi + 0xc4]
jmp 0x407f41
lea eax, [esi + 0xc4]
push eax
lea ecx, [esp + 0x60]
call dword [0x41516c]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x150], 0xf
call fcn.004071e0
mov ecx, eax
add ecx, 0x10
call fcn.00402b20
lea ecx, [esp + 0x5c]
mov byte [esp + 0x148], 9
call dword [0x41515c]
jmp 0x407d73
cmp dword [esi + 0xa0], 8
jb 0x407f99
mov esi, dword [esi + 0x8c]
jmp 0x407f9f
add esi, 0x8c
push esi
call dword [0x4150ac]
lea ecx, [esp + 0x98]
mov byte [esp + 0x148], 8
call dword [0x4151e8]
mov esi, dword [esp + 0x50]
cmp esi, ebx
mov byte [esp + 0x148], 7
je 0x407ff3
mov edi, dword [esp + 0x54]
cmp esi, edi
je 0x407fe6
mov ecx, esi
call dword [0x41515c]
add esi, 0x1c
cmp esi, edi
jne 0x407fd3
mov esi, dword [esp + 0x50]
push esi
call fcn.00412910
mov edi, dword [esp + 0x38]
add esp, 4
cmp edi, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x148], 2
je 0x408048
cmp edi, ebp
je 0x40803f
lea esi, [edi + 4]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi - 4]
call fcn.00402670
mov eax, dword [esi]
push eax
call fcn.00412910
mov dword [esi], ebx
mov dword [esi + 4], ebx
add esi, 0xc
lea edx, [esi - 4]
add esp, 4
cmp edx, ebp
jne 0x408012
push edi
call fcn.00412910
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x154], 1
call fcn.00407300
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00412910
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov ecx, dword [eax]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 0
call fcn.00407300
mov eax, dword [esp + 0x1c]
push eax
call fcn.00412910
add esp, 4
lea ecx, [esp + 0x120]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x148], 0xffffffff
call dword [0x41515c]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13c]
call fcn.00412959
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret