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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6346
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x61f138]
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 ebx, ecx
mov dword [ebp - 0xc4], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x74], edi
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x2c], ecx
mov edx, dword [eax + ecx]
lea eax, [ecx + 4]
mov dword [ebp - 0xd0], edx
cmp ecx, eax
je 0x515df2
mov esi, dword [edi + 8]
sub esi, eax
push esi
push eax
push ecx
call fcn.00586a50
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov edx, dword [ebp - 0xd0]
add eax, esi
mov dword [edi + 8], eax
cmp edx, 0xa
ja case.default.0x515e01
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp dword [edx*4 + 0x5171a4]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.004fbe20
mov edi, eax
mov edx, dword [edi]
add edx, dword [edi + 4]
mov ecx, dword [edx]
mov dword [ebx + 0x160], ecx
mov ecx, dword [edx + 4]
mov dword [ebx + 0x164], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x2c], ecx
lea eax, [ecx + 8]
cmp ecx, eax
je 0x515e83
mov esi, dword [edi + 8]
sub esi, eax
push esi
push eax
push ecx
call fcn.00586a50
mov eax, dword [ebp - 0x2c]
add esp, 0xc
add eax, esi
mov dword [edi + 8], eax
mov ecx, dword [edi]
add ecx, dword [edi + 4]
mov eax, dword [ecx]
mov dword [ebx + 0x148], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 0x14c], eax
mov ecx, dword [edi + 4]
mov dword [ebp - 0x2c], ecx
lea eax, [ecx + 8]
cmp ecx, eax
je 0x515ebe
mov esi, dword [edi + 8]
sub esi, eax
push esi
push eax
push ecx
call fcn.00586a50
mov eax, dword [ebp - 0x2c]
add esp, 0xc
add eax, esi
mov dword [edi + 8], eax
mov ecx, dword [edi]
add ecx, dword [edi + 4]
mov eax, dword [ecx]
mov dword [ebx + 0x158], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 0x15c], eax
mov ecx, dword [edi + 4]
mov dword [ebp - 0x2c], ecx
lea eax, [ecx + 8]
cmp ecx, eax
je 0x515ef9
mov esi, dword [edi + 8]
sub esi, eax
push esi
push eax
push ecx
call fcn.00586a50
mov eax, dword [ebp - 0x2c]
add esp, 0xc
add eax, esi
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
add eax, dword [edi]
mov eax, dword [eax]
mov dword [ebx + 0x16c], eax
mov ecx, dword [edi + 4]
mov dword [ebp - 0x2c], ecx
lea eax, [ecx + 4]
cmp ecx, eax
je 0x515f2b
mov esi, dword [edi + 8]
sub esi, eax
push esi
push eax
push ecx
call fcn.00586a50
mov eax, dword [ebp - 0x2c]
add esp, 0xc
add eax, esi
mov dword [edi + 8], eax
mov eax, dword [edi]
add eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [ebx + 0x168], eax
mov ecx, dword [edi + 4]
mov dword [ebp - 0x2c], ecx
lea eax, [ecx + 4]
cmp ecx, eax
je 0x515f5d
mov esi, dword [edi + 8]
sub esi, eax
push esi
push eax
push ecx
call fcn.00586a50
mov eax, dword [ebp - 0x2c]
add esp, 0xc
add eax, esi
mov dword [edi + 8], eax
cmp dword [ebx + 0x114], 0
lea esi, [ebx + 0x104]
jne 0x515f76
mov ecx, dword [ebp - 0x74]
mov edx, esi
call fcn.004fbe20
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
mov ecx, 0x5e1af8
cmovae eax, dword [ebp - 0x70]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x515fac
test dx, dx
je 0x515fa8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x515fac
add eax, 4
add ecx, 4
test dx, dx
jne 0x515f86
xor eax, eax
jmp 0x515fb1
sbb eax, eax
or eax, 1
test eax, eax
je 0x516153
xor ecx, ecx
mov edx, 7
xor eax, eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], edx
mov word [ebp - 0x88], ax
xor edi, edi
mov byte [ebp - 4], 2
cmp dword [ebx + 0x114], edi
jbe 0x516046
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x515fea
mov eax, dword [esi]
movzx eax, word [eax + edi*2]
mov dword [ebp - 0x2c], eax
cmp ecx, edx
jae 0x51601b
lea eax, [ecx + 1]
cmp edx, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x516035
push eax
mov byte [ebp - 0xd0], 0
push dword [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0x88]
call fcn.0048b810
inc edi
cmp edi, dword [ebx + 0x114]
jae 0x516046
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
jmp 0x515fe0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.00441310
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x4c]
call fcn.0044ed30
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x5160a8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x51609e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x517189
push edx
push ecx
call fcn.0056eec5
add esp, 8
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0x88]
push eax
cmp dword [ebp - 0x44], edi
je 0x5160c6
mov ecx, edi
call fcn.00441370
add edi, 0x18
mov dword [ebp - 0x48], edi
jmp 0x5160cf
push edi
lea ecx, [ebp - 0x4c]
call fcn.0045be10
sub esp, 0xc
lea eax, [ebp - 0x4c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004c85a0
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push 0xc
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.copyToClient
mov byte [ecx], 0
call fcn.004462c0
mov byte [ebp - 4], 2
call fcn.005101e0
mov byte [ebp - 4], 1
add esp, 0x24
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x516153
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x516149
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51718e
push edx
push ecx
call fcn.0056eec5
add esp, 8
mov edx, dword [ebx + 0x148]
mov eax, edx
mov ecx, dword [ebx + 0x14c]
and eax, ecx
cmp eax, 0xffffffff
jne 0x5161f3
lea eax, [ebp - 0x70]
mov edx, 0x5f210c
push eax
lea ecx, [ebp - 0x28]
call fcn.00449ce0
add esp, 4
mov byte [ebp - 4], 5
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x51618e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00448340
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x5161d7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5161cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x517193
push edx
push ecx
call fcn.0056eec5
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x5161df
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc dword [ebx + 0x18c]
jmp 0x5164d4
cmp edx, 0xfffffffe
jne 0x51623e
cmp ecx, 0xffffffff
jne 0x51623e
mov ecx, dword [ebx + 0x18c]
lea eax, [ecx - 1]
mov dword [ebx + 0x18c], eax
test ecx, ecx
jle 0x5164d4
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x51621e
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
movzx eax, word [ecx + eax*2 - 2]
mov ecx, esi
push eax
sub esp, 8
call fcn.00518200
push eax
mov ecx, esi
call fcn.0049c1f0
jmp 0x5164d4
cmp dword [ebp - 0x60], 0
jbe 0x516304
push 0x5f210c
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.0044a170
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.0044a2c0
add esp, 8
lea ecx, [ebx + 0xe8]
push eax
call fcn.00441270
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x5162b2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5162a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x517198
push edx
push ecx
call fcn.0056eec5
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x516304
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5162fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51719d
push edx
push ecx
call fcn.0056eec5
add esp, 8
cmp dword [ebx + 0xfc], 8
lea esi, [ebx + 0xe8]
mov eax, esi
jb 0x516317
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call edi
mov dword [ebx + 0xe4], eax
cmp eax, 0xffffffff
je 0x516470
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push ecx
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push eax
push dword [ebx + 0xe4]
call fcn.00517e00
push dword [ebx + 0xe4]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x140], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x144], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebx + 0x100], 0
mov dword [ebx + 0xe4], 0xffffffff
je 0x516451
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x70]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xc0], 0
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0xbc], 0
push eax
push 0
mov dword [ebp - 0x74], 9
call fcn.00465ce0
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
call fcn.00465ce0
push dword [ebp - 0x14]
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
call fcn.00465ce0
push dword [ebp - 0x14]
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xc4]
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
call fcn.00465ce0
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.005180c0
lea ecx, [ebp - 0x34]
jmp 0x516517
push dword [ebp - 0xc4]
mov ecx, ebx
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
push 0
call fcn.005177b0
jmp 0x51651c
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x51647a
mov eax, dword [esi]
push 0
push 0x80
push 1
push 0
push 2
push 0x40000000
push eax
call edi
mov dword [ebx + 0xe4], eax
cmp eax, 0xffffffff
jne 0x5164b0
push 0
push 0
push 0
push 0
push 0
push esi
push 2
mov ecx, ebx
call fcn.005177b0
jmp 0x51651c
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 - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x70]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x74], 3
push eax
lea eax, [ebp - 0x74]
push eax
push 0
call fcn.00465ce0
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.005180c0
lea ecx, [ebp - 0x1c]
call fcn.0043afb0
lea ecx, [ebp - 0x70]
call fcn.00445c30
lea ecx, [ebp - 0x4c]
call fcn.00444a40
jmp case.default.0x515e01
mov eax, dword [ebx + 0xdc]
lea esi, [ebx + 0xd8]
mov dword [ebp - 0x14], esi
sub eax, dword [esi]
jne 0x516593
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x2c], ecx
mov edx, dword [eax + ecx]
lea eax, [ecx + 4]
mov dword [ebp - 0x74], edx
cmp ecx, eax
je 0x51657a
mov esi, dword [edi + 8]
sub esi, eax
push esi
push eax
push ecx
call fcn.00586a50
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov edx, dword [ebp - 0x74]
add eax, esi
mov dword [edi + 8], eax
lea esi, [ebx + 0xd8]
test edx, edx
je 0x516593
push esi
push edx
mov ecx, esi
call fcn.00461bf0
push dword [ebp - 0x74]
mov ecx, edi
push dword [esi]
call fcn.004fbaa0
mov ecx, dword [esi]
lea edx, [ebp - 0xd0]
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 - 0xd0]
cmp ecx, eax
jne 0x5166f4
lea ecx, [ebp - 0x64]
call fcn.00456850
mov dword [ebp - 4], 9
lea eax, [ebp - 0x70]
push dword [ebp - 0x14]
mov dword [ebp - 0x74], 3
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x60]
call fcn.00465ce0
lea eax, [ebp - 0x64]
mov ecx, ebx
push eax
call fcn.005180c0
cmp byte [ebx + 0x100], 0
je 0x5166ea
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0x4c]
add dword [ebx + 0x140], eax
adc dword [ebx + 0x144], 0
add dword [ebx + 0x150], eax
adc dword [ebx + 0x154], 0
call fcn.00456850
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x70]
fild qword [ebx + 0x140]
mov dword [ebp - 0x74], 3
push dword [ebp - 0x14]
fmul qword [0x5f7c28]
fild qword [ebx + 0x148]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x48]
fdivp st(1)
fstp dword [ebp - 0x2c]
call fcn.00465ce0
lea edx, [ebx + 0xe8]
lea ecx, [ebp - 0x4c]
call fcn.004fbc30
push dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xbc], eax
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push dword [eax + 4]
mov ecx, eax
call fcn.00465ce0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xbc]
lea edx, [eax + 0x150]
lea edi, [eax + 0x16c]
lea esi, [eax + 0x158]
call fcn.0047bc90
mov edx, esi
mov ecx, eax
call fcn.0047bc90
mov edx, edi
mov ecx, eax
call fcn.0045b200
lea edx, [ebx + 0x168]
mov ecx, eax
call fcn.0045b200
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ecx + 0x6c]
call fcn.005180c0
lea ecx, [ebp - 0x4c]
call fcn.0043afb0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x517163
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.005177b0
jmp case.default.0x515e01
cmp dword [ebx + 0x170], 0xffffffff
je 0x51678d
lea ecx, [ebp - 0x64]
call fcn.00456850
mov dword [ebp - 4], 0xb
lea eax, [ebp - 0x28]
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x60]
call fcn.00465ce0
lea eax, [ebp - 0x64]
mov ecx, ebx
push eax
call fcn.005180c0
push dword [ebx + 0x170]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x64]
mov dword [ebx + 0x170], 0xffffffff
call fcn.0043afb0
push dword [ebx + 0x134]
lea ecx, [ebx + 0x134]
lea eax, [ebp - 0x14]
push eax
call fcn.00518020
lea ecx, [ebp - 0x4c]
call fcn.00456850
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x28]
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], 3
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x48]
call fcn.00465ce0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.004fba10
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xd
call fcn.00515d80
lea ecx, [ebp - 0x64]
call fcn.0043afb0
lea ecx, [ebp - 0x4c]
jmp 0x517166
cmp dword [ebx + 0x170], 0xffffffff
je 0x5169a4
lea ecx, [ebp - 0x64]
call fcn.00456850
mov dword [ebp - 4], 0xe
lea eax, [ebp - 0x28]
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x60]
call fcn.00465ce0
lea eax, [ebp - 0x64]
mov ecx, ebx
push eax
call fcn.005180c0
push dword [ebx + 0x170]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x18c], 0
mov dword [ebx + 0x170], 0xffffffff
jl 0x51699c
lea eax, [ebx + 0x170]
mov dword [ebp - 0x14], eax
lea edi, [ebx + 0x158]
lea eax, [ebx + 0x16c]
mov dword [ebp - 0xbc], eax
jmp 0x516880
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x28]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0xc8], 0xfffffffe
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xc4], 0xffffffff
push eax
push 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0x2c], 1
call fcn.00465ce0
lea ecx, [ebp - 0x4c]
call fcn.004fbc80
push dword [ebp - 0x14]
mov esi, eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xd0]
mov ecx, esi
push eax
push dword [esi + 4]
call fcn.00465ce0
push dword [ebp - 0x14]
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
lea eax, [ebp - 0x74]
push eax
push dword [esi + 4]
call fcn.00465ce0
push dword [ebp - 0x14]
lea eax, [ebp - 0xc0]
mov ecx, esi
push eax
lea eax, [ebp - 0xc8]
push eax
push dword [esi + 4]
call fcn.00465ce0
push dword [ebp - 0x14]
lea eax, [edi + 8]
mov ecx, esi
push eax
push edi
push dword [esi + 4]
call fcn.00465ce0
push dword [ebp - 0x14]
lea eax, [ebx + 0x16c]
mov ecx, esi
push dword [ebp - 0x14]
push eax
push dword [esi + 4]
call fcn.00465ce0
push dword [ebp - 0x14]
lea eax, [ebx + 0x168]
mov ecx, esi
push dword [ebp - 0xbc]
push eax
push dword [esi + 4]
call fcn.00465ce0
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
call fcn.005180c0
dec dword [ebx + 0x18c]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
call fcn.0043afb0
cmp dword [ebx + 0x18c], 0
jge 0x516880
lea ecx, [ebp - 0x64]
call fcn.0043afb0
mov dword [ebx + 0x18c], 0xffffffff
mov edi, dword [ebx + 0x138]
mov esi, dword [ebx + 0x134]
cmp esi, edi
je 0x5169d4
mov edi, edi
mov ecx, esi
call fcn.00445c30
add esi, 0x28
cmp esi, edi
jne 0x5169c0
mov esi, dword [ebx + 0x134]
mov dword [ebx + 0x138], esi
jmp case.default.0x515e01
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 0x516c80
lea ecx, [ebx + 0x134]
call fcn.00518000
test eax, eax
je case.default.0x515e01
mov esi, dword [ebx + 0x134]
mov edx, dword [esi + 0x18]
mov eax, edx
mov ecx, dword [esi + 0x1c]
and eax, ecx
cmp eax, 0xffffffff
jne 0x516a7a
push esi
mov edx, 0x5f210c
lea ecx, [ebp - 0x28]
call fcn.00449ce0
add esp, 4
mov dword [ebp - 4], 0x10
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x516a58
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebx + 0x11c]
call fcn.00448340
lea ecx, [ebp - 0x28]
call fcn.00445c30
inc dword [ebx + 0x18c]
jmp 0x516b98
cmp edx, 0xfffffffe
jne 0x516ab8
cmp ecx, 0xffffffff
jne 0x516ab8
lea ecx, [ebx + 0x11c]
call fcn.00518240
lea ecx, [ebx + 0x11c]
movzx eax, word [eax]
push eax
sub esp, 8
call fcn.00518200
push eax
lea ecx, [ebx + 0x11c]
call fcn.0049c1f0
dec dword [ebx + 0x18c]
jmp 0x516b98
test ecx, ecx
jl 0x516ac8
jg 0x516ac2
test edx, edx
jb 0x516ac8
inc dword [ebx + 0x16c]
push 0x5f210c
lea edx, [ebx + 0x11c]
lea ecx, [ebp - 0xb8]
call fcn.0044a170
mov dword [ebp - 4], 0x11
lea ecx, [ebp - 0xa0]
push dword [ebx + 0x134]
mov edx, eax
call fcn.0044a2c0
add esp, 8
lea esi, [ebx + 0x174]
mov ecx, esi
push eax
call fcn.00441270
lea ecx, [ebp - 0xa0]
call fcn.00445c30
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
call fcn.00445c30
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, esi
call fcn.004411b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x170], eax
cmp eax, 0xffffffff
jne 0x516b6a
push 0
push 0
push 0
push 0
push 0
push esi
push 1
mov ecx, ebx
call fcn.005177b0
jmp case.default.0x515e01
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 dword [ebx + 0x148], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x14c], eax
lea ecx, [ebp - 0x4c]
call fcn.00456850
mov dword [ebp - 4], 0x12
lea eax, [ebp - 0x28]
push dword [ebp - 0x14]
mov esi, dword [ebx + 0x134]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
push dword [ebp - 0x48]
call fcn.00465ce0
mov edx, esi
lea ecx, [ebp - 0x4c]
call fcn.004fbc30
lea edx, [esi + 0x20]
mov ecx, eax
call fcn.0045b200
lea edx, [esi + 0x24]
mov ecx, eax
call fcn.0045b200
lea edx, [esi + 0x18]
mov ecx, eax
call fcn.0047bc90
mov ebx, dword [ebp - 0xc4]
mov ecx, eax
lea edx, [ebx + 0x158]
call fcn.0047bc90
lea edx, [ebx + 0x16c]
mov ecx, eax
call fcn.0045b200
lea edx, [ebx + 0x168]
mov ecx, eax
call fcn.0045b200
cmp dword [ebx + 0x114], 0
je 0x516c49
lea esi, [ebx + 0x104]
mov edx, esi
lea ecx, [ebp - 0x4c]
call fcn.004fbc30
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x516c44
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
call fcn.005180c0
mov eax, dword [ebx + 0x134]
lea ecx, [ebx + 0x134]
cmp dword [eax + 0x1c], 0
jg 0x516c78
jl 0x516c6e
cmp dword [eax + 0x18], 0
jae 0x516c78
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00518020
lea ecx, [ebp - 0x4c]
jmp 0x517166
lea ecx, [ebp - 0x7c]
call fcn.00456850
mov dword [ebp - 4], 0x13
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x14
push eax
push 0x100000
mov ecx, eax
call fcn.00461bf0
push 0
lea eax, [ebp - 0xd0]
push eax
push 0x100000
push dword [ebp - 0x4c]
push dword [ebx + 0x170]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x516d18
mov ecx, dword [ebp - 0xd0]
cmp ecx, 0x100000
jae 0x516d42
xor eax, eax
mov edx, ecx
add edx, dword [ebx + 0x140]
adc eax, dword [ebx + 0x144]
cmp eax, dword [ebx + 0x14c]
jg 0x516d42
jl 0x516d09
cmp edx, dword [ebx + 0x148]
jae 0x516d42
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.005177b0
lea ecx, [ebp - 0x4c]
call fcn.0043afb0
lea ecx, [ebp - 0x7c]
jmp 0x517166
test ecx, ecx
jne 0x516ddb
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x78]
lea ecx, [ebp - 0x7c]
call fcn.00465ce0
lea eax, [ebp - 0x7c]
mov ecx, ebx
push eax
call fcn.005180c0
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 - 0x14]
push eax
call fcn.00518020
lea ecx, [ebp - 0x64]
call fcn.00456850
mov byte [ebp - 4], 0x15
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], 3
call fcn.0045b200
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.004fba10
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x16
call fcn.00515d80
lea ecx, [ebp - 0x1c]
call fcn.0043afb0
jmp 0x516ed1
add dword [ebx + 0x140], ecx
lea eax, [ebp - 0x4c]
push eax
adc dword [ebx + 0x144], 0
push ecx
mov ecx, eax
call fcn.00461bf0
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], 2
lea ecx, [ebp - 0x7c]
call fcn.0045b200
lea edx, [ebp - 0x4c]
mov ecx, eax
call fcn.0047c0b0
lea eax, [ebp - 0x7c]
mov ecx, ebx
push eax
call fcn.005180c0
cmp byte [ebx + 0x100], 0
je 0x516ed9
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0x64]
add dword [ebx + 0x150], eax
adc dword [ebx + 0x154], 0
call fcn.00456850
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x14]
fild qword [ebx + 0x140]
mov edi, dword [ebx + 0x134]
mov esi, dword [ebp - 0xc4]
mov dword [ebp - 0x14], 3
fmul qword [0x5f7c28]
fild qword [edi + 0x18]
fdivp st(1)
fstp dword [ebp - 0xbc]
call fcn.0045b200
mov edx, edi
mov ecx, eax
call fcn.004fbc30
lea edx, [ebp - 0xbc]
mov ecx, eax
call fcn.0045b200
mov edi, esi
mov ecx, eax
lea edx, [edi + 0x150]
call fcn.0047bc90
lea edx, [esi + 0x158]
mov ecx, eax
call fcn.0047bc90
lea edx, [ebx + 0x16c]
mov ecx, eax
call fcn.0045b200
lea edx, [edi + 0x168]
mov ecx, eax
call fcn.0045b200
lea eax, [ebp - 0x64]
push eax
lea ecx, [edi + 0x6c]
call fcn.005180c0
lea ecx, [ebp - 0x64]
call fcn.0043afb0
lea ecx, [ebp - 0x4c]
call fcn.0043afb0
lea ecx, [ebp - 0x7c]
jmp 0x517166
mov eax, dword [ebx + 0xe4]
cmp eax, 0xffffffff
je case.default.0x515e01
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0xe4], 0xffffffff
jmp case.default.0x515e01
lea ecx, [ebp - 0x28]
call fcn.00441350
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0x18
call fcn.00441350
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0x1a
mov ecx, edi
call fcn.004fbe20
lea edx, [ebp - 0x70]
mov ecx, eax
call fcn.004fbe20
lea edx, [ebp - 0x4c]
mov ecx, eax
call fcn.0047bff0
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005156d0
lea ecx, [ebp - 0x4c]
call fcn.00444a40
lea ecx, [ebp - 0x70]
call fcn.00445c30
lea ecx, [ebp - 0x28]
call fcn.00445c30
jmp case.default.0x515e01
lea ecx, [ebp - 0x58]
call fcn.00441350
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 0x1b
mov ecx, edi
call fcn.00449400
lea edx, [ebp - 0x58]
mov ecx, eax
call fcn.004fbe20
lea edx, [ebp - 0xc0]
mov ecx, eax
call fcn.0047bc50
lea edx, [ebp - 0xd4]
mov ecx, eax
call fcn.0047bc50
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.00449400
cmp dword [ebp - 0x2c], 0
jne 0x51700e
lea eax, [ebp - 0xd4]
mov ecx, ebx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0xbc]
push dword [ebp - 0xc0]
call fcn.00517f30
test al, al
jne 0x51700e
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
lea ecx, [ebp - 0x64]
call fcn.00456850
mov byte [ebp - 4], 0x1c
lea edx, [ebp - 0x2c]
mov byte [ebp - 0xc9], 0
call fcn.0045b200
lea edx, [ebp - 0x58]
mov ecx, eax
call fcn.004fbc30
lea edx, [ebp - 0xc0]
mov ecx, eax
call fcn.0047bc90
lea edx, [ebp - 0xd4]
mov ecx, eax
call fcn.0047bc90
lea edx, [ebp - 0xc9]
mov ecx, eax
call fcn.0044a880
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebx + 0x6c]
call fcn.005180c0
lea ecx, [ebp - 0x64]
call fcn.0043afb0
lea ecx, [ebp - 0x58]
call fcn.00445c30
jmp case.default.0x515e01
lea edx, [ebp - 0x14]
mov ecx, edi
call fcn.00449400
push 1
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.005171d0
jmp case.default.0x515e01
lea edx, [ebp - 0x30]
mov ecx, edi
call fcn.0047bc50
lea edx, [ebp - 0x78]
mov ecx, eax
call fcn.0047bc50
lea edx, [ebp - 0xc4]
mov ecx, eax
call fcn.00449400
cmp byte [ebx + 0x100], 0
je 0x5170e7
push dword [ebp - 0xc4]
lea eax, [ebx + 0xe8]
mov ecx, ebx
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push eax
push 0
call fcn.005177b0
jmp case.default.0x515e01
lea ecx, [ebp - 0x64]
call fcn.00456850
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 0x1d
push eax
push dword [ebp - 0xc4]
mov ecx, ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.00517f30
test al, al
jne 0x51711f
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0xbc]
mov dword [ebp - 0xbc], 9
lea ecx, [ebp - 0x64]
call fcn.0045b200
lea edx, [ebp - 0x30]
mov ecx, eax
call fcn.0047bc90
lea edx, [ebp - 0x78]
mov ecx, eax
call fcn.0047bc90
lea edx, [ebp - 0xc4]
mov ecx, eax
call fcn.0045b200
lea eax, [ebp - 0x64]
mov ecx, ebx
push eax
call fcn.005180c0
lea ecx, [ebp - 0x64]
call fcn.0043afb0
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.0056eeb4
mov esp, ebp
pop ebp
ret 4
call fcn.00591dc6
call fcn.00591dc6
call fcn.00591dc6
call fcn.00591dc6
call fcn.00591dc6
mov edi, edi
jmp 0x851c317