Function at 0x4d55fa
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x24]
push edi
mov edi, ecx
mov ecx, esi
push 4
push eax
mov dword [esp + 0x3c], edi
call fcn.004c810e
mov eax, dword [esp + 0x28]
cmp eax, 0xa
ja case.default.0x4d4c5d
xor ebx, ebx
jmp dword [eax*4 + 0x4d5e00]
xor ebx, ebx
mov dword [esp + 0x9c], 7
xor eax, eax
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x88]
mov dword [esp + 0x20], ebx
mov ecx, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], ax
call fcn.004c82c4
mov esi, eax
lea eax, [edi + 0x160]
push 8
push eax
mov ecx, esi
call fcn.004c810e
lea eax, [edi + 0x148]
mov ecx, esi
push 8
push eax
call fcn.004c810e
push 8
lea eax, [edi + 0x158]
mov ecx, esi
push eax
call fcn.004c810e
push 4
lea eax, [edi + 0x16c]
mov ecx, esi
push eax
call fcn.004c810e
push 4
lea eax, [edi + 0x168]
mov ecx, esi
push eax
call fcn.004c810e
cmp dword [edi + 0x114], ebx
jne 0x4d4d04
mov ecx, dword [ebp + 8]
lea edx, [edi + 0x104]
call fcn.004c82c4
mov edx, dword [esp + 0x9c]
lea eax, [esp + 0x88]
cmp edx, 8
mov ecx, 0x54de54
cmovae eax, dword [esp + 0x88]
mov si, word [eax]
cmp si, word [ecx]
jne 0x4d4d48
test si, si
je 0x4d4d44
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x4d4d48
add eax, 4
add ecx, 4
test si, si
jne 0x4d4d22
mov eax, ebx
jmp 0x4d4d4d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d4e12
xor eax, eax
mov dword [esp + 0x50], ebx
mov esi, ebx
mov dword [esp + 0x54], 7
mov word [esp + 0x40], ax
cmp dword [edi + 0x114], ebx
jbe 0x4d4da2
lea ebx, [edi + 0x104]
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4d4d82
mov eax, dword [ebx]
movzx eax, word [eax + esi*2]
lea ecx, [esp + 0x40]
push eax
call fcn.00482bd2
inc esi
cmp esi, dword [edi + 0x114]
jb 0x4d4d78
mov edx, dword [esp + 0x9c]
xor ebx, ebx
cmp edx, 8
lea eax, [esp + 0x88]
lea ecx, [esp + 0x70]
cmovae eax, dword [esp + 0x88]
push eax
call fcn.0043a44d
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x20]
call fcn.004401a8
lea ecx, [esp + 0x70]
call fcn.0043c274
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x20]
call fcn.0044bcf7
sub esp, 0x18
mov ecx, esp
push str.copyToClient
call fcn.0043a56f
sub esp, 0xc
lea eax, [esp + 0x40]
mov ecx, esp
push eax
call fcn.004a4d82
call fcn.004d29fe
add esp, 0x24
lea ecx, [esp + 0x40]
call fcn.0043c274
lea ecx, [edi + 0x148]
or esi, 0xffffffff
mov eax, dword [ecx]
and eax, dword [ecx + 4]
cmp eax, esi
jne 0x4d4e6d
lea eax, [esp + 0x88]
mov edx, 0x559268
push eax
lea ecx, [esp + 0x44]
call fcn.0043dfa3
pop ecx
lea esi, [edi + 0x104]
push eax
mov ecx, esi
call fcn.0043c3ca
lea ecx, [esp + 0x40]
call fcn.0043c274
cmp dword [esi + 0x14], 8
jb 0x4d4e5a
mov esi, dword [esi]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc dword [edi + 0x18c]
jmp 0x4d5103
cmp dword [ecx], 0xfffffffe
jne 0x4d4ede
cmp dword [ecx + 4], esi
jne 0x4d4ede
mov ecx, dword [edi + 0x18c]
lea eax, [ecx - 1]
mov dword [edi + 0x18c], eax
test ecx, ecx
jle 0x4d5103
lea eax, [edi + 0x104]
cmp dword [eax + 0x14], 8
mov dword [esp + 0xc], eax
jb 0x4d4ea4
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
cmp dword [eax + 0x14], 8
mov ecx, eax
mov edx, dword [eax + 0x10]
mov dword [esp + 0x28], edx
jb 0x4d4eb5
mov ecx, dword [eax]
push ecx
push esi
call fcn.004d009f
mov edx, dword [esp + 0x30]
add esp, 8
mov ecx, dword [esp + 0xc]
movzx ecx, word [ecx + edx*2 - 2]
push ecx
push eax
lea ecx, [edi + 0x104]
call fcn.00489e3a
jmp 0x4d5103
cmp dword [esp + 0x98], 0
jbe 0x4d4f4f
push 0x559268
lea edx, [edi + 0x104]
lea ecx, [esp + 0x74]
call fcn.0043de19
cmp dword [esp + 0xa0], 8
pop ecx
push dword [esp + 0x98]
lea ecx, [esp + 0x8c]
cmovae ecx, dword [esp + 0x8c]
push ecx
mov ecx, eax
call fcn.0043d30e
push eax
lea ecx, [esp + 0x44]
call fcn.0043a41d
lea eax, [esp + 0x40]
push eax
lea ecx, [edi + 0xe8]
call fcn.0043a3e7
lea ecx, [esp + 0x40]
call fcn.0043c274
lea ecx, [esp + 0x70]
call fcn.0043c274
lea eax, [edi + 0xe8]
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4d4f5f
mov ecx, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0xe4], eax
cmp eax, esi
je 0x4d509f
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
push ecx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [esp + 0x14]
mov dword [esp + 0x14], eax
push eax
push dword [edi + 0xe4]
call fcn.004d65ff
push dword [edi + 0xe4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x140], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x144], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [edi + 0x100], 0
mov dword [edi + 0xe4], esi
je 0x4d5087
push dword [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp + 0x44], ebx
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x4c], ebx
push eax
push ebx
lea ecx, [esp + 0x50]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x1c], 9
call fcn.00448e16
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x50]
lea ecx, [esp + 0x50]
call fcn.00448e16
push dword [esp + 0x10]
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x50]
lea ecx, [esp + 0x50]
call fcn.00448e16
push dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x50]
lea ecx, [esp + 0x50]
call fcn.00448e16
lea eax, [esp + 0x40]
mov ecx, edi
push eax
call fcn.004d68b6
lea ecx, [esp + 0x40]
jmp 0x4d513f
push dword [esp + 0x34]
lea eax, [edi + 0xe8]
push ebx
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
push eax
push ebx
jmp 0x4d50de
lea eax, [edi + 0xe8]
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4d50af
mov ecx, dword [eax]
push ebx
push 0x80
push 1
push ebx
push 2
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0xe4], eax
cmp eax, esi
jne 0x4d50e7
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [edi + 0xe8]
push eax
push 2
mov ecx, edi
call fcn.004d62cc
jmp 0x4d5144
lea ecx, [edi + 0x160]
mov dword [edi + 0x140], ebx
push ecx
push ecx
push ecx
push eax
mov dword [edi + 0x144], ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp + 0x5c], ebx
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x64], ebx
push eax
push ebx
lea ecx, [esp + 0x68]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x1c], 3
call fcn.00448e16
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.004d68b6
lea ecx, [esp + 0x58]
call fcn.0043c24c
lea ecx, [esp + 0x88]
call fcn.0043c274
lea ecx, [esp + 0x1c]
call fcn.0043bc40
jmp case.default.0x4d4c5d
lea esi, [edi + 0xd8]
mov eax, dword [esi + 4]
mov dword [esp + 0x70], esi
sub eax, dword [esi]
jne 0x4d519a
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x28]
push 4
push eax
call fcn.004c810e
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4d519a
push esi
push ebx
mov ecx, esi
call fcn.00448cbd
mov ecx, dword [ebp + 8]
push ebx
push dword [esi]
call fcn.004c810e
xor ebx, ebx
lea eax, [esp + 0x38]
push ebx
push eax
mov eax, dword [esi + 4]
sub eax, dword [esi]
push eax
push dword [esi]
push dword [edi + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jne 0x4d532b
push dword [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp + 0x5c], ebx
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x64], ebx
push eax
push ebx
lea ecx, [esp + 0x68]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x1c], 3
call fcn.00448e16
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.004d68b6
cmp byte [edi + 0x100], bl
je 0x4d5321
mov ecx, dword [esp + 0x38]
lea esi, [edi + 0x150]
add dword [edi + 0x140], ecx
mov eax, dword [edi + 0x140]
adc dword [edi + 0x144], ebx
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x144]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
fild qword [esp + 0x40]
add dword [esi], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
adc dword [esi + 4], ebx
push dword [esp + 0x10]
fmul qword [0x55d628]
fild qword [edi + 0x148]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x28], ebx
push eax
push ebx
fdivp st(1)
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], 3
fstp dword [esp + 0x38]
call fcn.00448e16
lea edx, [edi + 0xe8]
lea ecx, [esp + 0x1c]
call fcn.004c81bf
push dword [esp + 0x10]
mov edi, eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
mov ecx, edi
push eax
push dword [edi + 4]
call fcn.00448e16
push dword [esp + 0x10]
lea eax, [esi + 8]
mov ecx, edi
push eax
push esi
push dword [edi + 4]
call fcn.00448e16
mov ebx, dword [esp + 0x34]
push dword [esp + 0x10]
lea ecx, [ebx + 0x158]
lea eax, [ecx + 8]
push eax
push ecx
push dword [edi + 4]
mov ecx, edi
call fcn.00448e16
push dword [esp + 0x10]
lea ecx, [ebx + 0x16c]
lea eax, [ecx + 4]
push eax
push ecx
push dword [edi + 4]
mov ecx, edi
call fcn.00448e16
push dword [esp + 0x10]
lea ecx, [ebx + 0x168]
lea eax, [ecx + 4]
push eax
push ecx
push dword [edi + 4]
mov ecx, edi
call fcn.00448e16
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x6c]
call fcn.004d68b6
lea ecx, [esp + 0x1c]
call fcn.0043c24c
mov esi, dword [esp + 0x70]
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x4d5dee
push 1
push ebx
neg ecx
push ecx
push dword [edi + 0xe4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi + 0xe4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [edi + 0xe8]
push eax
push 2
mov ecx, edi
jmp 0x4d5d75
xor ebx, ebx
cmp dword [edi + 0x170], 0xffffffff
je 0x4d53b9
push dword [esp + 0x10]
lea eax, [esp + 0x30]
mov dword [esp + 0x5c], ebx
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x64], ebx
push eax
push ebx
lea ecx, [esp + 0x68]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x38], ebx
call fcn.00448e16
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.004d68b6
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi + 0x170], 0xffffffff
lea ecx, [esp + 0x58]
call fcn.0043c24c
lea ecx, [edi + 0x134]
push dword [ecx]
lea eax, [esp + 0x14]
push eax
call fcn.004d6732
push dword [esp + 0x10]
lea eax, [esp + 0x30]
mov dword [esp + 0x20], ebx
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x28], ebx
push eax
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 3
call fcn.00448e16
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x58]
sub eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x20]
call fcn.004c80d0
push eax
mov ecx, edi
call fcn.004d4c28
lea ecx, [esp + 0x5c]
call fcn.0043c24c
lea ecx, [esp + 0x1c]
jmp 0x4d5df2
cmp dword [edi + 0x170], 0xffffffff
je 0x4d55b6
push dword [esp + 0x10]
lea eax, [esp + 0x30]
xor ebx, ebx
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x60], ebx
push eax
push ebx
lea ecx, [esp + 0x68]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x38], ebx
call fcn.00448e16
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.004d68b6
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi + 0x170], 0xffffffff
cmp dword [edi + 0x18c], ebx
jl 0x4d55ad
lea eax, [edi + 0x160]
mov dword [esp + 0x70], eax
lea eax, [edi + 0x170]
mov dword [esp + 0x34], eax
lea eax, [edi + 0x16c]
mov dword [esp + 0x10], eax
push dword [esp + 0x10]
or dword [esp + 0x48], 0xffffffff
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x24], ebx
push eax
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x50], 0xfffffffe
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], 1
call fcn.00448e16
lea ecx, [esp + 0x1c]
call fcn.004c820b
push dword [esp + 0x10]
mov esi, eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
mov ecx, esi
push eax
push dword [esi + 4]
call fcn.00448e16
push dword [esp + 0x10]
lea eax, [esp + 0x14]
mov ecx, esi
push eax
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call fcn.00448e16
push dword [esp + 0x10]
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
lea eax, [esp + 0x48]
push eax
push dword [esi + 4]
call fcn.00448e16
push dword [esp + 0x10]
lea eax, [edi + 0x158]
mov ecx, esi
push dword [esp + 0x74]
push eax
push dword [esi + 4]
call fcn.00448e16
push dword [esp + 0x10]
lea eax, [edi + 0x16c]
mov ecx, esi
push dword [esp + 0x38]
push eax
push dword [esi + 4]
call fcn.00448e16
push dword [esp + 0x10]
lea eax, [edi + 0x168]
mov ecx, esi
push dword [esp + 0x14]
push eax
push dword [esi + 4]
call fcn.00448e16
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.004d68b6
dec dword [edi + 0x18c]
lea ecx, [esp + 0x1c]
call fcn.0043c24c
cmp dword [edi + 0x18c], ebx
jge 0x4d54a7
lea ecx, [esp + 0x58]
call fcn.0043c24c
or dword [edi + 0x18c], 0xffffffff
push dword [edi + 0x138]
push dword [edi + 0x134]
call fcn.00470cb5
mov eax, dword [edi + 0x134]
mov dword [edi + 0x138], eax
jmp case.default.0x4d4c5d
push ebx
push ebx
push ebx
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi + 0x140], ebx
mov dword [edi + 0x144], ebx
or esi, 0xffffffff
cmp dword [edi + 0x170], esi
jne 0x4d584c
lea eax, [edi + 0x134]
mov dword [esp + 0x10], 0x28
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
cdq
idiv dword [esp + 0x10]
test eax, eax
je case.default.0x4d4c5d
mov eax, dword [ecx + 0x18]
and eax, dword [ecx + 0x1c]
cmp eax, esi
jne 0x4d566b
push ecx
mov edx, 0x559268
lea ecx, [esp + 0x8c]
call fcn.0043dfa3
pop ecx
push eax
lea ecx, [edi + 0x11c]
call fcn.0043c3ca
lea ecx, [esp + 0x88]
call fcn.0043c274
inc dword [edi + 0x18c]
jmp 0x4d576f
cmp dword [ecx + 0x18], 0xfffffffe
jne 0x4d56ab
cmp dword [ecx + 0x1c], esi
jne 0x4d56ab
lea eax, [esp + 0x10]
lea esi, [edi + 0x11c]
push eax
mov ecx, esi
call fcn.004419ae
mov eax, dword [eax]
movzx eax, word [eax - 2]
push eax
push ecx
push ecx
mov ecx, esi
call fcn.004d694c
push eax
mov ecx, esi
call fcn.00489e3a
dec dword [edi + 0x18c]
jmp 0x4d576f
cmp dword [ecx + 0x1c], ebx
jl 0x4d56bd
jg 0x4d56b7
cmp dword [ecx + 0x18], ebx
jb 0x4d56bd
inc dword [edi + 0x16c]
push ecx
push 0x559268
lea edx, [edi + 0x11c]
lea ecx, [esp + 0x60]
call fcn.0043de19
pop ecx
mov edx, eax
lea ecx, [esp + 0x8c]
call fcn.0043deb9
pop ecx
push eax
lea ecx, [edi + 0x174]
call fcn.0043a3e7
lea ecx, [esp + 0x88]
call fcn.0043c274
lea ecx, [esp + 0x58]
call fcn.0043c274
lea eax, [edi + 0x174]
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4d5713
mov ecx, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x170], eax
cmp eax, esi
jne 0x4d5747
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [edi + 0x174]
push eax
push 1
jmp 0x4d5357
lea ecx, [esp + 0x44]
mov dword [edi + 0x140], ebx
push ecx
push eax
mov dword [edi + 0x144], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0x148], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 0x14c], eax
push dword [esp + 0x10]
mov esi, dword [edi + 0x134]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x24], ebx
push eax
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 1
call fcn.00448e16
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.004c81bf
lea edx, [esi + 0x20]
mov ecx, eax
call fcn.00441b42
lea edx, [esi + 0x24]
mov ecx, eax
call fcn.00441b42
lea edx, [esi + 0x18]
mov ecx, eax
call fcn.00470d70
lea edx, [edi + 0x158]
mov ecx, eax
call fcn.00470d70
lea edx, [edi + 0x16c]
mov ecx, eax
call fcn.00441b42
lea edx, [edi + 0x168]
mov ecx, eax
call fcn.00441b42
xor ebx, ebx
cmp dword [edi + 0x114], ebx
je 0x4d5814
lea esi, [edi + 0x104]
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.004c81bf
push ebx
mov ecx, esi
call fcn.0043c2a1
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.004d68b6
lea ecx, [edi + 0x134]
mov eax, dword [ecx]
cmp dword [eax + 0x1c], ebx
jg 0x4d541e
jl 0x4d583c
cmp dword [eax + 0x18], ebx
jae 0x4d541e
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004d6732
jmp 0x4d541e
lea eax, [esp + 0x40]
mov dword [esp + 0x70], ebx
push eax
push 0x100000
mov ecx, eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.00448cbd
push ebx
lea eax, [esp + 0x3c]
push eax
push 0x100000
push dword [esp + 0x4c]
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d58d7
mov ecx, dword [esp + 0x38]
cmp ecx, 0x100000
jae 0x4d58f1
xor eax, eax
mov edx, ecx
add edx, dword [edi + 0x140]
adc eax, dword [edi + 0x144]
cmp eax, dword [edi + 0x14c]
jg 0x4d58f1
jl 0x4d58c5
cmp edx, dword [edi + 0x148]
jae 0x4d58f1
push 1
push ebx
neg ecx
push ecx
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [edi + 0x174]
mov ecx, edi
push eax
push 1
call fcn.004d62cc
jmp 0x4d5ae9
test ecx, ecx
jne 0x4d59a6
push dword [esp + 0x10]
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], ebx
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x80]
lea ecx, [esp + 0x80]
call fcn.00448e16
lea eax, [esp + 0x70]
mov ecx, edi
push eax
call fcn.004d68b6
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 0x134]
mov dword [edi + 0x170], esi
push dword [ecx]
lea eax, [esp + 0x14]
push eax
call fcn.004d6732
push dword [esp + 0x10]
lea eax, [esp + 0x30]
mov dword [esp + 0x20], ebx
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x28], ebx
push eax
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 3
call fcn.00448e16
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x58]
sub eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x20]
call fcn.004c80d0
push eax
mov ecx, edi
call fcn.004d4c28
lea ecx, [esp + 0x5c]
call fcn.0043c24c
jmp 0x4d5ae0
add dword [edi + 0x140], ecx
lea eax, [esp + 0x40]
push eax
adc dword [edi + 0x144], ebx
push ecx
mov ecx, eax
call fcn.00448cbd
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 2
lea ecx, [esp + 0x70]
call fcn.00441b42
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0xc]
sub ecx, dword [esp + 0x40]
mov esi, eax
mov dword [esp + 0xc], ecx
mov ecx, esi
call fcn.00441b42
cmp dword [esp + 0xc], ebx
jbe 0x4d5a02
push dword [esp + 0xc]
mov ecx, esi
push dword [esp + 0x44]
call fcn.004c809e
lea eax, [esp + 0x70]
mov ecx, edi
push eax
call fcn.004d68b6
cmp byte [edi + 0x100], bl
je 0x4d5ae9
fild qword [edi + 0x140]
mov eax, dword [esp + 0x38]
lea ecx, [edi + 0x150]
add dword [ecx], eax
lea eax, [esp + 0x2c]
mov esi, dword [edi + 0x134]
adc dword [ecx + 4], ebx
lea ecx, [esp + 0x1c]
fmul qword [0x55d628]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
fild qword [esi + 0x18]
mov dword [esp + 0x28], 3
push dword [esp + 0x10]
fdivp st(1)
push eax
lea eax, [esp + 0x30]
push eax
push ebx
fstp dword [esp + 0x1c]
call fcn.00448e16
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.004c81bf
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x14]
push ecx
push dword [eax + 4]
mov ecx, eax
call fcn.00448e16
mov ecx, dword [esp + 0x10]
mov eax, edi
lea edx, [eax + 0x150]
lea esi, [eax + 0x158]
call fcn.00470d70
mov edx, esi
mov ecx, eax
call fcn.00470d70
lea edx, [edi + 0x16c]
mov ecx, eax
call fcn.00441b42
lea edx, [edi + 0x168]
mov ecx, eax
call fcn.00441b42
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
add ecx, 0x6c
call fcn.004d68b6
lea ecx, [esp + 0x1c]
call fcn.0043c24c
lea ecx, [esp + 0x40]
call fcn.0043c24c
lea ecx, [esp + 0x70]
jmp 0x4d5df2
mov eax, dword [edi + 0xe4]
cmp eax, 0xffffffff
je case.default.0x4d4c5d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi + 0xe4], 0xffffffff
jmp case.default.0x4d4c5d
push 7
pop eax
xor ebx, ebx
mov dword [esp + 0x6c], eax
xor ecx, ecx
mov dword [esp + 0x9c], eax
mov word [esp + 0x58], cx
lea edx, [esp + 0x58]
xor eax, eax
mov dword [esp + 0x68], ebx
mov ecx, esi
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], ax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.004c82c4
lea edx, [esp + 0x88]
mov ecx, eax
call fcn.004c82c4
push 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x74], eax
push ecx
mov ecx, eax
call fcn.004c810e
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4d5bb7
lea eax, [esp + 0x1c]
push eax
push esi
mov ecx, eax
call fcn.004710cc
test esi, esi
je 0x4d5bb7
mov edi, dword [esp + 0x70]
mov edx, dword [esp + 0x1c]
mov ecx, edi
lea edx, [edx + ebx]
call fcn.004c82c4
lea ebx, [ebx + 0x18]
sub esi, 1
jne 0x4d5b9d
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004d492f
lea ecx, [esp + 0x1c]
call fcn.0043bc40
lea ecx, [esp + 0x88]
call fcn.0043c274
lea ecx, [esp + 0x58]
call fcn.0043c274
jmp case.default.0x4d4c5d
xor eax, eax
mov dword [esp + 0x9c], 7
mov word [esp + 0x88], ax
xor ebx, ebx
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x9c], ebx
push eax
mov ecx, esi
call fcn.004c810e
lea edx, [esp + 0x88]
mov ecx, esi
call fcn.004c82c4
mov esi, eax
lea eax, [esp + 0x70]
push 8
push eax
mov ecx, esi
call fcn.004c810e
push 8
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.004c810e
push 4
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.004c810e
cmp dword [esp + 0xc], ebx
jne 0x4d5c83
lea eax, [esp + 0x40]
mov ecx, edi
push eax
push dword [esp + 0x14]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
call fcn.004d6688
test al, al
jne 0x4d5c83
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
push dword [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ebx
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x28], ebx
push eax
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], ebx
mov byte [esp + 0x4f], bl
call fcn.00448e16
lea edx, [esp + 0x88]
lea ecx, [esp + 0x1c]
call fcn.004c81bf
lea edx, [esp + 0x70]
mov ecx, eax
call fcn.00470d70
lea edx, [esp + 0x40]
mov ecx, eax
call fcn.00470d70
lea edx, [esp + 0x3f]
mov ecx, eax
call fcn.0043e00f
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x6c]
call fcn.004d68b6
lea ecx, [esp + 0x1c]
call fcn.0043c24c
lea ecx, [esp + 0x88]
jmp 0x4d5be9
push 4
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.004c810e
push 1
push dword [esp + 0x14]
mov ecx, edi
call fcn.004d5ead
jmp case.default.0x4d4c5d
push 8
lea eax, [esp + 0x74]
mov ecx, esi
push eax
call fcn.004c810e
push 8
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.004c810e
push 4
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.004c810e
mov ecx, edi
cmp byte [edi + 0x100], bl
je 0x4d5d7c
push dword [esp + 0xc]
lea eax, [edi + 0xe8]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x80]
push dword [esp + 0x80]
push eax
push 0
call fcn.004d62cc
jmp case.default.0x4d4c5d
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
push dword [esp + 0x10]
mov dword [esp + 0x60], ebx
push dword [esp + 0x7c]
mov dword [esp + 0x68], ebx
push dword [esp + 0x7c]
mov dword [esp + 0x70], ebx
call fcn.004d6688
test al, al
jne 0x4d5dac
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 9
lea ecx, [esp + 0x58]
call fcn.00441b42
lea edx, [esp + 0x70]
mov ecx, eax
call fcn.00470d70
lea edx, [esp + 0x28]
mov ecx, eax
call fcn.00470d70
lea edx, [esp + 0xc]
mov ecx, eax
call fcn.00441b42
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.004d68b6
lea ecx, [esp + 0x58]
call fcn.0043c24c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4