Function at 0x52c730
Capabilities:
Create directory
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x64
push 0xffffffffffffffff
push 0x5c5aad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [ebp + 0x6c]
mov ebx, ecx
mov dword [ebp + 0x18], ebx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [ecx + eax]
lea eax, [ecx + 4]
mov dword [ebp - 0x10], edx
cmp ecx, eax
je 0x52c78b
mov esi, dword [edi + 8]
sub esi, eax
push esi
push eax
push ecx
call fcn.005854c0
mov eax, dword [ebp + 0x60]
add esp, 0xc
mov edx, dword [ebp - 0x10]
add eax, esi
mov dword [edi + 8], eax
cmp edx, 0xa
ja case.default.0x52c79a
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp dword [edx*4 + 0x52de3c]
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 7
mov word [ebp + 0x1c], ax
lea edx, [ebp + 0x1c]
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.005182e0
mov edi, eax
mov dword [ebp - 0x10], edi
mov esi, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [esi + ecx]
mov ecx, dword [esi + ecx + 4]
mov dword [ebx + 0x160], edx
mov dword [ebx + 0x164], ecx
mov eax, dword [edi + 4]
mov dword [ebp + 0x60], eax
lea ecx, [eax + 8]
cmp eax, ecx
je 0x52c828
mov esi, dword [edi + 8]
sub esi, ecx
push esi
push ecx
push eax
call fcn.005854c0
mov eax, dword [ebp + 0x60]
add esp, 0xc
add eax, esi
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x18]
lea edx, [ebx + 0x148]
mov ecx, dword [ebp - 0x10]
lea edi, [eax + 0x16c]
lea esi, [eax + 0x158]
call fcn.004661b0
mov edx, esi
mov ecx, eax
call fcn.004661b0
mov edx, edi
mov ecx, eax
call fcn.0044c6a0
lea edx, [ebx + 0x168]
mov ecx, eax
call fcn.0044c6a0
mov ebx, dword [ebp + 0x18]
cmp dword [ebx + 0x114], 0
jne 0x52c87e
mov ecx, dword [ebp + 0x6c]
lea edx, [ebx + 0x104]
call fcn.005182e0
cmp dword [ebp + 0x30], 8
lea ecx, [ebp + 0x1c]
mov edi, dword [ebp + 0x1c]
lea eax, [ebx + 0x104]
cmovae ecx, edi
mov edx, 0x5dd63c
mov si, word [ecx]
cmp si, word [edx]
jne 0x52c8bc
test si, si
je 0x52c8b8
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x52c8bc
add ecx, 4
add edx, 4
test si, si
jne 0x52c896
xor edx, edx
jmp 0x52c8c1
sbb edx, edx
or edx, 1
mov ecx, SysReAllocString
test edx, edx
je 0x52cb78
xor ecx, ecx
mov dword [ebp + 0x48], 0
mov esi, 7
mov dword [ebp + 0x58], ecx
xor edx, edx
mov dword [ebp + 0x5c], esi
mov word [ebp + 0x48], dx
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], edx
cmp dword [ebx + 0x114], edx
jbe 0x52ca5d
mov edi, dword [ebp + 0x48]
mov edi, edi
cmp dword [eax + 0x14], 8
mov dword [ebp + 0x6c], eax
jb 0x52c90d
mov eax, dword [eax]
jmp 0x52c910
mov eax, dword [ebp + 0x6c]
movzx eax, word [eax + edx*2]
mov dword [ebp + 0x3c], eax
cmp ecx, esi
jae 0x52c946
lea eax, [ecx + 1]
cmp esi, 8
mov esi, dword [ebp + 0x3c]
mov dword [ebp + 0x58], eax
lea eax, [ebp + 0x48]
cmovae eax, edi
mov word [eax + ecx*2], si
xor esi, esi
mov word [eax + ecx*2 + 2], si
mov esi, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x58]
mov edi, dword [ebp + 0x48]
jmp 0x52ca44
mov eax, SysReAllocString
mov dword [ebp - 0x28], ecx
sub eax, ecx
cmp eax, 1
jb 0x52de26
lea eax, [ecx + 1]
mov ecx, esi
mov esi, eax
mov dword [ebp + 0x44], eax
or esi, 7
mov dword [ebp + 0x60], ecx
cmp esi, 0x7ffffffe
jbe 0x52c978
mov esi, SysReAllocString
jmp 0x52c996
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x52c98e
mov esi, SysReAllocString
jmp 0x52c996
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp + 0x48]
call fcn.00449a50
mov ecx, dword [ebp + 0x44]
mov dword [ebp + 0x58], ecx
mov ecx, dword [ebp - 0x28]
add ecx, ecx
mov dword [ebp + 0x6c], eax
cmp dword [ebp + 0x60], 8
mov dword [ebp + 0x5c], esi
push ecx
jb 0x52ca15
push edi
push eax
call fcn.005854c0
mov edx, dword [ebp - 0x28]
add esp, 0xc
mov eax, dword [ebp + 0x6c]
mov ebx, dword [ebp + 0x3c]
lea ecx, [edx + edx]
xor edx, edx
mov word [ecx + eax], bx
mov ebx, dword [ebp + 0x18]
mov word [ecx + eax + 2], dx
mov eax, dword [ebp + 0x60]
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x52ca06
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52de31
push ecx
push edi
call fcn.00583877
mov edi, dword [ebp + 0x6c]
add esp, 8
jmp 0x52ca3b
lea ecx, [ebp + 0x48]
push ecx
push eax
call fcn.005854c0
mov edx, dword [ebp - 0x28]
add esp, 0xc
mov eax, dword [ebp + 0x6c]
mov edi, dword [ebp + 0x3c]
lea ecx, [edx + edx]
xor edx, edx
mov word [ecx + eax], di
mov edi, eax
mov word [ecx + eax + 2], dx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x44]
mov dword [ebp + 0x48], edi
inc edx
lea eax, [ebx + 0x104]
mov dword [ebp - 0x10], edx
cmp edx, dword [ebx + 0x114]
jb 0x52c900
mov edi, dword [ebp + 0x1c]
cmp dword [ebp + 0x30], 8
lea eax, [ebp + 0x1c]
lea ecx, [ebp - 0x24]
cmovae eax, edi
push eax
call fcn.00446ee0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.00451410
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
cmp ecx, 8
jb 0x52cac0
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x52cab6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52de31
push ecx
push edx
call fcn.00583877
add esp, 8
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 0x48]
push eax
cmp esi, dword [ebp + 0x14]
je 0x52cadb
mov ecx, esi
call fcn.00446f20
add esi, 0x18
mov dword [ebp + 0x10], esi
jmp 0x52cae4
push esi
lea ecx, [ebp + 0xc]
call fcn.0045f770
sub esp, 0xc
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp + 0x6c], esp
push eax
call fcn.004eb8d0
sub esp, 0x18
mov byte [ebp - 4], 4
mov esi, esp
push 0xc
push str.copyToClient
push esi
mov dword [esi], 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0xc
call fcn.005854c0
add esp, 0xc
mov byte [esi + 0xc], 0
mov byte [ebp - 4], 2
call fcn.00526240
mov byte [ebp - 4], 1
add esp, 0x24
mov ecx, dword [ebp + 0x5c]
cmp ecx, 8
jb 0x52cb70
mov edx, dword [ebp + 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x52cb66
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52de31
push ecx
push edx
call fcn.00583877
add esp, 8
mov edi, dword [ebp + 0x1c]
mov ecx, SysReAllocString
mov edx, dword [ebx + 0x148]
mov eax, edx
mov esi, dword [ebx + 0x14c]
and eax, esi
cmp eax, 0xffffffff
jne 0x52cc3b
mov edx, dword [ebp + 0x2c]
sub ecx, edx
cmp ecx, 1
jb 0x52de26
cmp dword [ebp + 0x30], 8
lea eax, [ebp + 0x1c]
push edx
cmovae eax, edi
push eax
push 1
push 0x5ed894
push ecx
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x48]
call fcn.0044f200
mov byte [ebp - 4], 5
lea eax, [ebp + 0x48]
cmp dword [ebp + 0x5c], 8
lea edi, [ebx + 0x104]
push dword [ebp + 0x58]
cmovae eax, dword [ebp + 0x48]
mov ecx, edi
push eax
call fcn.0044bde0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x5c]
cmp ecx, 8
jb 0x52cc1c
mov edx, dword [ebp + 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x52cc12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52de31
push ecx
push edx
call fcn.00583877
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x52cc24
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc dword [ebx + 0x18c]
mov edi, dword [ebp + 0x1c]
jmp 0x52cedb
cmp edx, 0xfffffffe
jne 0x52cc82
cmp esi, 0xffffffff
jne 0x52cc82
add dword [ebx + 0x18c], esi
js 0x52cedb
lea ecx, [ebx + 0x104]
call fcn.0052f000
sub esp, 8
lea ecx, [ebx + 0x104]
movzx esi, word [eax]
call fcn.0052efc0
push esi
push eax
lea ecx, [ebx + 0x104]
call fcn.0052f020
mov edi, dword [ebp + 0x1c]
jmp 0x52cedb
cmp dword [ebp + 0x2c], 0
jbe 0x52ccd7
push 0x5ed894
lea edx, [ebx + 0x104]
lea ecx, [ebp - 0x24]
call fcn.0044cd60
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp + 0x48]
call fcn.0044ce40
add esp, 8
lea esi, [ebx + 0xe8]
mov ecx, esi
push eax
call fcn.00446db0
lea ecx, [ebp + 0x48]
call fcn.00449550
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00449550
mov edi, dword [ebp + 0x1c]
jmp 0x52ccdd
lea esi, [ebx + 0xe8]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x52cce7
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0xe4], eax
cmp eax, 0xffffffff
je 0x52ce13
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push ecx
push eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push eax
push dword [ebx + 0xe4]
call fcn.0052eca0
mov ecx, dword [ebp - 0x10]
push dword [ebx + 0xe4]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x140], eax
mov dword [ebx + 0x144], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebx + 0x100], 0
mov dword [ebx + 0xe4], 0xffffffff
je 0x52ce01
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
mov byte [ebp - 4], 7
lea eax, [ebp + 0x70]
mov dword [ebp + 0x6c], 9
lea ecx, [ebp + 0x34]
push dword [ebp + 0x6c]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0
call fcn.004708c0
push dword [ebp + 0x6c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x38]
lea ecx, [ebp + 0x34]
call fcn.004708c0
push dword [ebp + 0x6c]
lea eax, [ebp + 0x48]
mov dword [ebp + 0x40], 0
push eax
lea eax, [ebp + 0x40]
mov dword [ebp + 0x44], 0
push eax
push dword [ebp + 0x38]
lea ecx, [ebp + 0x34]
call fcn.004708c0
lea edx, [ebp + 0x60]
lea ecx, [ebp + 0x34]
call fcn.0045e950
lea eax, [ebp + 0x34]
mov ecx, ebx
push eax
call fcn.0052ef50
lea ecx, [ebp + 0x34]
call fcn.0043b340
jmp 0x52ce52
push dword [ebp + 0x60]
push 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
push 0
jmp 0x52ce4b
push 0
push 0x80
push 1
push 0
push 2
push 0x40000000
mov ecx, esi
call fcn.00446cf0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0xe4], eax
cmp eax, 0xffffffff
jne 0x52ceb7
push 0
push 0
push 0
push 0
push 0
push esi
push 2
mov ecx, ebx
call fcn.0052e5f0
mov eax, dword [ebp + 0x30]
cmp eax, 8
jb 0x52ce65
inc eax
lea ecx, [ebp + 0x1c]
push eax
push edi
call fcn.00449ab0
mov edi, dword [ebp + 0xc]
test edi, edi
je case.default.0x52c79a
mov ebx, dword [ebp + 0x10]
mov esi, edi
cmp esi, ebx
je 0x52ce8e
lea esp, [esp]
mov ecx, esi
call fcn.00449550
add esi, 0x18
cmp esi, ebx
jne 0x52ce80
mov eax, dword [ebp + 0x14]
sub eax, edi
sar eax, 3
imul eax, eax, 0xaaaaaaab
push eax
push edi
call fcn.0044b870
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x64]
pop ebp
ret 4
lea ecx, [ebx + 0x160]
mov dword [ebx + 0x140], 0
push ecx
push ecx
push ecx
push eax
mov dword [ebx + 0x144], 0
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 0
mov byte [ebp - 4], 8
lea eax, [ebp + 0x70]
mov dword [ebp + 0x6c], 3
lea ecx, [ebp + 0x54]
push dword [ebp + 0x6c]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0
call fcn.004708c0
lea eax, [ebp + 0x54]
mov ecx, ebx
push eax
call fcn.0052ef50
mov edx, dword [ebp + 0x54]
test edx, edx
je 0x52cf4f
mov ecx, dword [ebp + 0x5c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x52cf45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52de31
push ecx
push edx
call fcn.00583877
add esp, 8
mov eax, dword [ebp + 0x30]
cmp eax, 8
jb 0x52cf86
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x52cf7c
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52de31
push ecx
push edi
call fcn.00583877
add esp, 8
lea ecx, [ebp + 0xc]
call fcn.004491b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x64]
pop ebp
ret 4
mov eax, dword [ebx + 0xdc]
lea esi, [ebx + 0xd8]
mov dword [ebp + 0x3c], esi
sub eax, dword [esi]
jne 0x52cfbe
mov edx, esi
mov ecx, edi
call fcn.00466070
mov ecx, dword [esi]
lea edx, [ebp + 0x60]
mov eax, dword [esi + 4]
push 0
push edx
sub eax, ecx
push eax
push ecx
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov ecx, dword [ebp + 0x60]
cmp ecx, eax
jne 0x52d143
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
mov dword [ebp - 4], 9
lea eax, [ebp + 0x70]
mov dword [ebp + 0x6c], 3
lea ecx, [ebp + 0x28]
push dword [ebp + 0x6c]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0
call fcn.004708c0
lea eax, [ebp + 0x28]
mov ecx, ebx
push eax
call fcn.0052ef50
cmp byte [ebx + 0x100], 0
je 0x52d131
mov edx, dword [ebp + 0x60]
mov ecx, edx
add ecx, dword [ebx + 0x140]
mov eax, dword [ebx + 0x144]
adc eax, 0
mov dword [ebp + 0x10], ecx
add dword [ebx + 0x150], edx
mov dword [ebp + 0x14], eax
adc dword [ebx + 0x154], 0
mov dword [ebx + 0x140], ecx
mov dword [ebx + 0x144], eax
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 0
mov byte [ebp - 4], 0xa
lea eax, [ebp + 0x70]
fild qword [ebp + 0x10]
mov dword [ebp + 0x6c], 3
lea ecx, [ebp + 0x54]
push dword [ebp + 0x6c]
fmul qword [0x5f46f0]
fild qword [ebx + 0x148]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0
fdivp st(1)
fstp dword [ebp - 0x10]
call fcn.004708c0
lea edx, [ebx + 0xe8]
lea ecx, [ebp + 0x54]
call fcn.00518100
push dword [ebp + 0x6c]
lea ecx, [ebp - 0xc]
mov dword [ebp + 0x44], eax
push ecx
lea ecx, [ebp - 0x10]
push ecx
push dword [eax + 4]
mov ecx, eax
call fcn.004708c0
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x44]
lea edx, [eax + 0x150]
lea edi, [eax + 0x16c]
lea esi, [eax + 0x158]
call fcn.00486fa0
mov edx, esi
mov ecx, eax
call fcn.00486fa0
mov edx, edi
mov ecx, eax
call fcn.0045e950
lea edx, [ebx + 0x168]
mov ecx, eax
call fcn.0045e950
mov ecx, dword [ebp + 0x18]
lea eax, [ebp + 0x54]
push eax
add ecx, 0x6c
call fcn.0052ef50
lea ecx, [ebp + 0x54]
call fcn.0043b340
mov esi, dword [ebp + 0x3c]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x52d13b
mov dword [esi + 4], eax
lea ecx, [ebp + 0x28]
jmp 0x52de0d
push 1
push 0
neg ecx
push ecx
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push 0
push 0
lea eax, [ebx + 0xe8]
mov ecx, ebx
push eax
push 2
call fcn.0052e5f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x64]
pop ebp
ret 4
cmp dword [ebx + 0x170], 0xffffffff
je 0x52d1fa
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
mov dword [ebp - 4], 0xb
lea eax, [ebp + 0x70]
mov dword [ebp + 0x6c], 0
lea ecx, [ebp + 0x28]
push dword [ebp + 0x6c]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0
call fcn.004708c0
lea eax, [ebp + 0x28]
mov ecx, ebx
push eax
call fcn.0052ef50
push dword [ebx + 0x170]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x28]
mov dword [ebx + 0x170], 0xffffffff
call fcn.0043b340
push dword [ebx + 0x134]
lea ecx, [ebx + 0x134]
lea eax, [ebp + 0x6c]
push eax
call fcn.0052eea0
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 0
mov dword [ebp - 4], 0xc
lea eax, [ebp + 0x70]
mov dword [ebp + 0x6c], 3
lea ecx, [ebp + 0x54]
push dword [ebp + 0x6c]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0
call fcn.004708c0
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x58]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp + 0x24]
call fcn.00517f00
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xd
call fcn.0052c730
lea ecx, [ebp + 0x24]
call fcn.004387c0
lea ecx, [ebp + 0x54]
jmp 0x52de0d
cmp dword [ebx + 0x170], 0xffffffff
je 0x52d487
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
mov dword [ebp - 4], 0xe
lea eax, [ebp + 0x70]
mov dword [ebp + 0x6c], 0
lea ecx, [ebp + 0x28]
push dword [ebp + 0x6c]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0
call fcn.004708c0
lea eax, [ebp + 0x28]
mov ecx, ebx
push eax
call fcn.0052ef50
push dword [ebx + 0x170]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x18c], 0
mov dword [ebx + 0x170], 0xffffffff
jl 0x52d47f
lea eax, [ebx + 0x170]
mov dword [ebp + 0x3c], eax
lea ecx, [ebx + 0x160]
lea eax, [ebx + 0x16c]
mov dword [ebp + 0x44], ecx
lea esi, [ebx + 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp + 0x18], esi
lea esp, [esp]
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 0
mov byte [ebp - 4], 0xf
lea eax, [ebp + 0x70]
mov dword [ebp + 0x6c], 1
lea ecx, [ebp + 0x54]
push dword [ebp + 0x6c]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0
call fcn.004708c0
lea ecx, [ebp + 0x54]
call fcn.00518150
push dword [ebp + 0x6c]
mov edi, eax
mov dword [ebp + 0x60], 0
lea eax, [ebp + 0x64]
mov ecx, edi
push eax
lea eax, [ebp + 0x60]
push eax
push dword [edi + 4]
call fcn.004708c0
push dword [ebp + 0x6c]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push dword [edi + 4]
call fcn.004708c0
push dword [ebp + 0x6c]
lea eax, [ebp + 0x18]
mov dword [ebp + 0x10], 0xfffffffe
push eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0x14], 0xffffffff
push eax
push dword [edi + 4]
mov ecx, edi
call fcn.004708c0
push dword [ebp + 0x6c]
lea eax, [ebx + 0x158]
mov ecx, edi
push dword [ebp + 0x44]
push eax
push dword [edi + 4]
call fcn.004708c0
push dword [ebp + 0x6c]
lea eax, [ebx + 0x16c]
mov ecx, edi
push dword [ebp + 0x3c]
push eax
push dword [edi + 4]
call fcn.004708c0
push dword [ebp + 0x6c]
lea eax, [ebx + 0x168]
mov ecx, edi
push dword [ebp - 0x28]
push eax
push dword [edi + 4]
call fcn.004708c0
push esi
call fcn.00571f54
add esp, 4
test eax, eax
jne 0x52de2b
lea eax, [ebp + 0x54]
mov byte [ebp - 4], 0x10
lea ecx, [ebx + 0x58]
push eax
call fcn.0052aa10
push ebx
call fcn.00572d17
push esi
call fcn.00571f79
dec dword [ebx + 0x18c]
add esp, 8
mov byte [ebp - 4], 0xe
mov edx, dword [ebp + 0x54]
test edx, edx
je 0x52d472
mov ecx, dword [ebp + 0x5c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x52d453
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52de31
push ecx
push edx
call fcn.00583877
add esp, 8
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 0
cmp dword [ebx + 0x18c], 0
jge 0x52d310
lea ecx, [ebp + 0x28]
call fcn.0043b340
mov dword [ebx + 0x18c], 0xffffffff
mov esi, dword [ebx + 0x134]
mov edi, dword [ebx + 0x138]
cmp esi, edi
je case.default.0x52c79a
mov ecx, esi
call fcn.00449550
add esi, 0x28
cmp esi, edi
jne 0x52d4a5
mov eax, dword [ebx + 0x134]
mov dword [ebx + 0x138], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x64]
pop ebp
ret 4
push 0
push 0
push 0
push dword [ebx + 0x170]
call esi
mov dword [ebx + 0x140], 0
mov dword [ebx + 0x144], 0
cmp dword [ebx + 0x170], 0xffffffff
jne 0x52d770
mov eax, dword [ebx + 0x138]
lea esi, [ebx + 0x134]
mov edi, dword [esi]
sub eax, edi
je case.default.0x52c79a
mov edx, dword [edi + 0x18]
mov eax, edx
mov ecx, dword [edi + 0x1c]
and eax, ecx
cmp eax, 0xffffffff
jne 0x52d55e
push edi
mov edx, 0x5ed894
lea ecx, [ebp + 0x1c]
call fcn.0044cff0
add esp, 4
push eax
lea ecx, [ebx + 0x11c]
mov dword [ebp - 4], 0x11
call fcn.00446d30
lea ecx, [ebp + 0x1c]
call fcn.00449550
inc dword [ebx + 0x18c]
jmp 0x52d680
cmp edx, 0xfffffffe
jne 0x52d5a2
cmp ecx, 0xffffffff
jne 0x52d5a2
lea ecx, [ebx + 0x11c]
call fcn.0052f000
sub esp, 8
lea ecx, [ebx + 0x11c]
movzx esi, word [eax]
call fcn.0052efc0
push esi
push eax
lea ecx, [ebx + 0x11c]
call fcn.0052f020
dec dword [ebx + 0x18c]
lea esi, [ebx + 0x134]
jmp 0x52d680
test ecx, ecx
jl 0x52d5b2
jg 0x52d5ac
test edx, edx
jb 0x52d5b2
inc dword [ebx + 0x16c]
push 0x5ed894
lea edx, [ebx + 0x11c]
lea ecx, [ebp - 0x40]
call fcn.0044cd60
push edi
mov edx, eax
mov dword [ebp - 4], 0x12
lea ecx, [ebp + 0x1c]
call fcn.0044ce40
add esp, 8
lea edi, [ebx + 0x174]
mov ecx, edi
push eax
call fcn.00446db0
lea ecx, [ebp + 0x1c]
call fcn.00449550
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00449550
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov ecx, edi
call fcn.00446cf0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x170], eax
cmp eax, 0xffffffff
jne 0x52d652
push 0
push 0
push 0
push 0
push 0
push edi
push 1
mov ecx, ebx
call fcn.0052e5f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x64]
pop ebp
ret 4
lea ecx, [ebp + 0x14]
mov dword [ebx + 0x140], 0
push ecx
push eax
mov dword [ebx + 0x144], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x14]
mov dword [ebx + 0x148], eax
mov dword [ebx + 0x14c], ecx
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 0
mov dword [ebp - 4], 0x13
lea eax, [ebp + 0x70]
mov dword [ebp + 0x6c], 1
lea ecx, [ebp + 0x54]
push dword [ebp + 0x6c]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0
call fcn.004708c0
mov edx, dword [esi]
lea ecx, [ebp + 0x54]
call fcn.00518100
mov edx, dword [esi]
mov ecx, eax
add edx, 0x20
call fcn.0045e950
mov edx, dword [esi]
mov ecx, eax
add edx, 0x24
call fcn.0045e950
mov ecx, dword [ebp + 0x18]
mov edx, dword [esi]
add edx, 0x18
lea edi, [ecx + 0x16c]
lea esi, [ecx + 0x158]
mov ecx, eax
call fcn.00486fa0
mov edx, esi
mov ecx, eax
call fcn.00486fa0
mov edx, edi
mov ecx, eax
call fcn.0045e950
lea edx, [ebx + 0x168]
mov ecx, eax
call fcn.0045e950
mov ebx, dword [ebp + 0x18]
cmp dword [ebx + 0x114], 0
je 0x52d739
lea edx, [ebx + 0x104]
lea ecx, [ebp + 0x54]
call fcn.00518100
lea ecx, [ebx + 0x104]
call fcn.00483160
lea eax, [ebp + 0x54]
mov ecx, ebx
push eax
call fcn.0052ef50
mov eax, dword [ebx + 0x134]
lea ecx, [ebx + 0x134]
cmp dword [eax + 0x1c], 0
jg 0x52d768
jl 0x52d75e
cmp dword [eax + 0x18], 0
jae 0x52d768
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0052eea0
lea ecx, [ebp + 0x54]
jmp 0x52de0d
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp - 4], 0x14
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 0
push 0x100000
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0x15
call fcn.00467cb0
push 0
lea eax, [ebp + 0x6c]
push eax
push 0x100000
push dword [ebp + 0x54]
push dword [ebx + 0x170]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x52d80c
mov ecx, dword [ebp + 0x6c]
cmp ecx, 0x100000
jae 0x52d833
xor eax, eax
mov edx, ecx
add edx, dword [ebx + 0x140]
adc eax, dword [ebx + 0x144]
cmp eax, dword [ebx + 0x14c]
jg 0x52d833
jl 0x52d7fd
cmp edx, dword [ebx + 0x148]
jae 0x52d833
push 1
push 0
neg ecx
push ecx
push dword [ebx + 0x170]
call esi
push 0
push 0
push 0
push 0
push 0
lea eax, [ebx + 0x174]
mov ecx, ebx
push eax
push 1
call fcn.0052e5f0
lea ecx, [ebp + 0x54]
call fcn.0043b340
jmp 0x52de0a
test ecx, ecx
jne 0x52d8e1
mov dword [ebp + 0x60], ecx
lea edx, [ebp + 0x60]
lea ecx, [ebp + 0xc]
call fcn.0045e950
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0052ef50
push dword [ebx + 0x170]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebx + 0x134]
mov dword [ebx + 0x170], 0xffffffff
push dword [ecx]
lea eax, [ebp + 0x60]
push eax
call fcn.0052eea0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0x16
lea edx, [ebp + 0x60]
lea ecx, [ebp - 0x18]
mov dword [ebp + 0x60], 3
call fcn.0045e950
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp + 0x24]
call fcn.00517f00
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x17
call fcn.0052c730
lea ecx, [ebp + 0x24]
call fcn.004387c0
lea ecx, [ebp - 0x18]
call fcn.0043b340
lea ecx, [ebp + 0x54]
call fcn.0043b340
jmp 0x52de0a
add dword [ebx + 0x140], ecx
push ecx
adc dword [ebx + 0x144], 0
lea ecx, [ebp + 0x54]
call fcn.00467cb0
lea edx, [ebp + 0x60]
mov dword [ebp + 0x60], 2
lea ecx, [ebp + 0xc]
call fcn.0045e950
lea edx, [ebp + 0x54]
mov ecx, eax
call fcn.00486fc0
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0052ef50
cmp byte [ebx + 0x100], 0
je 0x52d9ec
mov eax, dword [ebp + 0x6c]
add dword [ebx + 0x150], eax
mov dword [ebp + 0x28], 0
adc dword [ebx + 0x154], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
mov byte [ebp - 4], 0x18
lea edx, [ebp + 0x60]
fild qword [ebx + 0x140]
mov eax, dword [ebx + 0x134]
lea ecx, [ebp + 0x28]
mov dword [ebp + 0x60], 3
fmul qword [0x5f46f0]
fild qword [eax + 0x18]
fdivp st(1)
fstp dword [ebp - 0x10]
call fcn.0045e950
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 0x134]
lea edi, [ecx + 0x16c]
lea esi, [ecx + 0x158]
mov ecx, eax
call fcn.00518100
lea edx, [ebp - 0x10]
mov ecx, eax
call fcn.0045e950
mov edx, dword [ebp + 0x18]
mov ecx, eax
lea edx, [edx + 0x150]
call fcn.00486fa0
mov edx, esi
mov ecx, eax
call fcn.00486fa0
mov edx, edi
mov ecx, eax
call fcn.0045e950
lea edx, [ebx + 0x168]
mov ecx, eax
call fcn.0045e950
mov ecx, dword [ebp + 0x18]
lea eax, [ebp + 0x28]
push eax
lea ecx, [ecx + 0x6c]
call fcn.0052ef50
lea ecx, [ebp + 0x28]
call fcn.0043b340
lea ecx, [ebp + 0x54]
call fcn.0043b340
jmp 0x52de0a
mov eax, dword [ebx + 0xe4]
cmp eax, 0xffffffff
je case.default.0x52c79a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0xe4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x64]
pop ebp
ret 4
xor eax, eax
mov dword [ebp], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
mov dword [ebp - 4], 0x19
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x30], eax
lea edx, [ebp]
mov byte [ebp - 4], 0x1b
mov ecx, edi
call fcn.005182e0
lea edx, [ebp + 0x48]
mov ecx, eax
call fcn.005182e0
lea edx, [ebp + 0x28]
mov ecx, eax
call fcn.00486ec0
lea eax, [ebp + 0x28]
mov ecx, ebx
push eax
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp]
push eax
call fcn.0052bde0
lea ecx, [ebp + 0x28]
call fcn.004491b0
mov ecx, dword [ebp + 0x5c]
cmp ecx, 8
jb 0x52dae0
mov edx, dword [ebp + 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x52dad6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52de31
push ecx
push edx
call fcn.00583877
add esp, 8
mov ecx, dword [ebp + 0x14]
cmp ecx, 8
jb case.default.0x52c79a
mov edx, dword [ebp]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x52db14
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52de31
push ecx
push edx
call fcn.00583877
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x64]
pop ebp
ret 4
xor eax, eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 7
mov word [ebp + 0x1c], ax
lea edx, [ebp - 0x10]
mov dword [ebp - 4], 0x1c
mov ecx, edi
call fcn.0044c6a0
lea edx, [ebp + 0x1c]
mov ecx, eax
call fcn.005182e0
lea edx, [ebp + 0x40]
mov ecx, eax
call fcn.004661b0
lea edx, [ebp + 0x10]
mov ecx, eax
call fcn.004661b0
lea edx, [ebp + 0x6c]
mov ecx, eax
call fcn.0044c6a0
cmp dword [ebp - 0x10], 0
jne 0x52dbb2
lea eax, [ebp + 0x10]
mov ecx, ebx
push eax
push dword [ebp + 0x6c]
push dword [ebp + 0x44]
push dword [ebp + 0x40]
call fcn.0052edd0
test al, al
jne 0x52dbb2
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0xc]
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
call fcn.004708c0
mov eax, dword [ebp + 0x2c]
lea ecx, [ebp + 0x34]
push dword [ebp + 0x6c]
mov dword [ebp + 0x60], eax
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x60]
push eax
push dword [ebp + 0x38]
call fcn.004708c0
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x52dc21
cmp dword [ebp + 0x30], 8
lea ecx, [ebp + 0x1c]
push dword [ebp + 0x6c]
cmovae ecx, dword [ebp + 0x1c]
lea eax, [ecx + eax*2]
push eax
push ecx
push dword [ebp + 0x38]
lea ecx, [ebp + 0x34]
call fcn.004708c0
push dword [ebp + 0x6c]
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x40]
push eax
push dword [ebp + 0x38]
lea ecx, [ebp + 0x34]
call fcn.004708c0
push dword [ebp + 0x6c]
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x38]
lea ecx, [ebp + 0x34]
call fcn.004708c0
mov byte [ebp + 0x6f], 0
lea eax, [ebp + 0x70]
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x34]
push eax
lea eax, [ebp + 0x6f]
push eax
push dword [ebp + 0x38]
call fcn.004708c0
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebx + 0x6c]
call fcn.0052ef50
lea ecx, [ebp + 0x34]
call fcn.0043b340
mov ecx, dword [ebp + 0x30]
cmp ecx, 8
jb case.default.0x52c79a
mov edx, dword [ebp + 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x52db14
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52de36
jmp 0x52db14
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp + 0x6c], ecx
mov eax, dword [ecx + eax]
mov dword [ebp + 0x60], eax
lea eax, [ecx + 4]
cmp ecx, eax
je 0x52dce5
mov esi, dword [edi + 8]
sub esi, eax
push esi
push eax
push ecx
call fcn.005854c0
mov eax, dword [ebp + 0x6c]
add esp, 0xc
add eax, esi
mov dword [edi + 8], eax
push 1
push dword [ebp + 0x60]
mov ecx, ebx
call fcn.0052dff0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x64]
pop ebp
ret 4
lea edx, [ebp + 0x40]
mov ecx, edi
call fcn.004661b0
lea edx, [ebp + 0x38]
mov ecx, eax
call fcn.004661b0
lea edx, [ebp + 0x6c]
mov ecx, eax
call fcn.0044c6a0
cmp byte [ebx + 0x100], 0
je 0x52dd5f
push dword [ebp + 0x6c]
lea eax, [ebx + 0xe8]
mov ecx, ebx
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push eax
push 0
call fcn.0052e5f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x64]
pop ebp
ret 4
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
lea eax, [ebp + 0x38]
mov dword [ebp - 4], 0x1e
push eax
push dword [ebp + 0x6c]
mov ecx, ebx
push dword [ebp + 0x44]
push dword [ebp + 0x40]
call fcn.0052edd0
test al, al
jne 0x52dda1
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
push dword [ebp + 0x6c]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 9
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.004708c0
push dword [ebp + 0x6c]
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x40]
push eax
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
call fcn.004708c0
push dword [ebp + 0x6c]
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x38]
push eax
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
call fcn.004708c0
push dword [ebp + 0x6c]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x6c]
push eax
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
call fcn.004708c0
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0052ef50
lea ecx, [ebp + 0xc]
call fcn.0043b340
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x64]
pop ebp
ret 4
call fcn.004353d0
push eax
call fcn.00570e47
call fcn.00591c98
call fcn.00591c98
nop
stc
fst dword [edx]
mov eax, dword [0xa20052c7]
iretd