Function at 0x412eae
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4db47d
call fcn.004d0500
sub esp, 0x748
mov eax, dword [0x52d320]
push ebx
push esi
xor ebx, ebx
push edi
xor edi, edi
xor eax, ebp
mov esi, ecx
inc ebx
mov dword [ebp - 0x684], edi
cmp dword [esi + 0x78], ebx
mov dword [ebp - 0x10], eax
jne 0x412ee4
xor eax, eax
jmp 0x4132fe
lea eax, [ebp - 0x6a0]
push 0x400
push eax
call fcn.004cc1ac
pop ecx
pop ecx
push eax
lea ecx, [esi + 0x5c]
mov dword [ebp - 4], edi
call dword [0x4ea4e8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6a0]
call dword [0x4ea4f8]
mov word [ebp - 0x628], di
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x626]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0
call dword [0x4ea3cc]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x644]
call dword [0x4ea6a8]
mov eax, dword [0x4ea6dc]
push dword [eax]
lea ecx, [ebp - 0x644]
push 0x5c
mov dword [ebp - 4], ebx
call dword [0x4ea744]
inc eax
push eax
push 0
lea eax, [ebp - 0x6a0]
push eax
lea ecx, [ebp - 0x644]
call dword [0x4ea6d8]
push eax
lea ecx, [ebp - 0x644]
mov byte [ebp - 4], 2
call dword [0x4ea4e8]
lea ecx, [ebp - 0x6a0]
mov byte [ebp - 4], bl
call dword [0x4ea4f8]
push str.xl_client.dll
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x6bc]
push eax
call fcn.00407770
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x684], ebx
call dword [0x4ea6a4]
mov edi, dword [0x4eaadc]
push eax
call edi
test eax, eax
je 0x41301e
push str.xl_data.dll
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x6a0]
push eax
call fcn.00407770
add esp, 0xc
mov ecx, eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x684], 3
call dword [0x4ea6a4]
push eax
call edi
test eax, eax
mov byte [ebp - 0x67d], 0
jne 0x413024
mov byte [ebp - 0x67d], bl
test byte [ebp - 0x684], 2
mov dword [ebp - 4], 3
je 0x413047
and dword [ebp - 0x684], 0xfffffffd
lea ecx, [ebp - 0x6a0]
call dword [0x4ea4f8]
test byte [ebp - 0x684], bl
mov dword [ebp - 4], ebx
je 0x41305e
lea ecx, [ebp - 0x6bc]
call dword [0x4ea4f8]
cmp byte [ebp - 0x67d], 0
jne 0x4132ec
and word [ebp - 0x420], 0
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x41e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [0x4ea298]
lea ecx, [ebp - 0x644]
call dword [0x4ea6a4]
mov edi, dword [0x4ea29c]
push eax
call edi
push str.xl_data.dll
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x6a0]
push eax
call fcn.00407770
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 5
call dword [0x4ea6a4]
push eax
call fcn.00412aa9
neg al
sbb al, al
pop ecx
inc al
lea ecx, [ebp - 0x6a0]
mov byte [ebp - 0x67d], al
mov byte [ebp - 4], bl
call dword [0x4ea4f8]
cmp byte [ebp - 0x67d], 0
je 0x41310b
lea eax, [ebp - 0x420]
push eax
call edi
jmp 0x4132ec
cmp dword [0x530eb8], 0
jne 0x41316b
push str.xl_client.dll
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x6a0]
push eax
call fcn.00407770
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 6
call dword [0x4ea6a4]
push ebx
push eax
call fcn.00412d4e
neg al
pop ecx
sbb al, al
pop ecx
inc al
lea ecx, [ebp - 0x6a0]
mov byte [ebp - 0x67d], al
mov byte [ebp - 4], bl
call dword [0x4ea4f8]
cmp byte [ebp - 0x67d], 0
jne 0x4130fd
mov dword [esi + 0x7c], ebx
lea eax, [ebp - 0x420]
push eax
call edi
and word [ebp - 0x218], 0
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x218]
push eax
push 0x104
mov dword [esi + 0x78], ebx
call dword [0x4ea2a0]
push str.Thunder_NetworkThunderCloudCdn.xml
lea eax, [ebp - 0x218]
push eax
push eax
call dword [0x4eaad8]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x660]
call dword [0x4ea6a8]
lea ecx, [ebp - 0x67c]
mov byte [ebp - 4], 7
call dword [0x4ea6d4]
lea eax, [ebp - 0x67c]
push eax
push dword [ebp - 0x64c]
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 8
call dword [0x4ea6a4]
push eax
call fcn.0044f999
add esp, 0xc
push ebx
push 0x1b6
push 0x20
lea ecx, [ebp - 0x67c]
call dword [0x4ea4e0]
push eax
lea ecx, [ebp - 0x754]
call dword [0x4ea4a8]
lea edi, [esi + 0x50]
push ebx
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.0048ad50
push ebx
push 0x2000
mov ecx, edi
call fcn.0048ad35
lea eax, [ebp - 0x754]
push eax
mov ecx, edi
call fcn.0048b2f6
push str.ipbase.phub.sandai.net
lea ecx, [ebp - 0x6bc]
call dword [0x4ea6a8]
lea ecx, [esi + 8]
mov eax, dword [ecx]
push 0x1ff4
lea edx, [ebp - 0x6bc]
push edx
mov byte [ebp - 4], 0xa
call dword [eax + 4]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 9
call dword [0x4ea4f8]
push 0x4edda0
lea ecx, [ebp - 0x6bc]
call dword [0x4ea6a8]
lea ecx, [esi + 0x2c]
mov eax, dword [ecx]
mov byte [ebp - 4], 0xb
push 0x224c
lea edx, [ebp - 0x6bc]
push edx
call dword [eax + 4]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 9
call dword [0x4ea4f8]
lea ecx, [ebp - 0x754]
mov byte [ebp - 4], 8
call dword [0x4ea4ac]
lea ecx, [ebp - 0x67c]
mov byte [ebp - 4], 7
call dword [0x4ea4dc]
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], bl
call dword [0x4ea4f8]
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x644]
call dword [0x4ea4f8]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d0557
leave
ret