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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52ce7b
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x55c4c8]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
mov eax, dword [0x55c4c8]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
mov dword fs:[0], eax
mov edx, dword [0x61c338]
mov ebx, dword [ebp + 8]
or edi, 0xffffffff
push edi
lea eax, [esp + 0x24]
xor ecx, ecx
push edx
lea esi, [esp + 0x24]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
call fcn.004b50c0
mov dword [esp + 0x2e8], 0
mov eax, dword [0x61c3c0]
cmp word [eax], 0
jne 0x4dcf27
test ebx, ebx
je 0x4dce61
push ebx
mov eax, esi
push eax
call fcn.004b4f80
mov ecx, dword [esp + 0x1c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, edi
jne 0x4dcea9
mov dword [esp + 0x2e8], edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x4dd03d
push eax
call fcn.0050a8b9
add esp, 4
jmp 0x4dd03d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x4dcedd
mov dword [esp + 0x2e8], edi
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x4dd03d
push eax
call fcn.0050a8b9
add esp, 4
jmp 0x4dd03d
push esi
mov dword [esp + 0x18], 0
call fcn.005095f9
add esp, 4
push 0
lea edx, [esp + 0x18]
push edx
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], esi
je 0x4dd019
push edi
call fcn.0050a8ae
add esp, 4
mov dword [esp + 0x2e8], 0xffffffff
jmp 0x4dcebf
push eax
lea edx, [esp + 0x20]
push edx
call fcn.004b4f80
cmp byte [0x61fd47], 0
je 0x4dcf43
mov ebx, dword [0x626d08]
jmp 0x4dcf56
mov eax, dword [esp + 0x1c]
push 2
push 0
push eax
call fcn.004e1c30
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x4dceb8
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xa4]
push edx
push ebx
lea edx, [esp + 0x18]
call fcn.004e1ca0
add esp, 8
test eax, eax
jne 0x4dceb8
mov esi, dword [esp + 0x2d0]
test esi, esi
jne 0x4dcfa0
mov dword [esp + 0x2e8], edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
jmp 0x4dcec9
push esi
call fcn.005095f9
add esp, 4
cmp dword [ebx], 1
mov edi, eax
je 0x4dcfbc
mov dword [0x626d40], 0x80000
jmp 0x4dcfdc
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 4]
push esi
push edi
push ecx
push eax
call fcn.004e1b40
mov dword [0x626d40], eax
test eax, eax
je 0x4dd007
cmp eax, 0x600
je 0x4dd007
push edi
call fcn.0050a8ae
add esp, 4
cmp byte [0x61fd47], 0
jne 0x4dcff7
push ebx
call fcn.004e1e30
add esp, 4
mov dword [esp + 0x2e8], 0xffffffff
jmp 0x4dce8b
cmp byte [0x61fd47], 0
jne 0x4dd019
push ebx
call fcn.004e1e30
add esp, 4
mov dword [esp + 0x2e8], 0xffffffff
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x4dd039
push eax
call fcn.0050a8b9
add esp, 4
test edi, edi
jne 0x4dd0b5
mov edx, dword [esp + 0x18]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4dd0b1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4dd0b1
push esi
mov dword [esp + 0x14], 0
call fcn.005095f9
add esp, 4
push 0
mov edi, eax
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], esi
je 0x4dd0ad
push edi
call fcn.0050a8ae
add esp, 4
xor eax, eax
jmp 0x4dd0ca
test edi, edi
jne 0x4dd0b5
xor eax, eax
jmp 0x4dd0ca
push edi
mov eax, esi
call fcn.004dd0f0
push edi
mov esi, eax
call fcn.0050a226
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.0050a231
mov esp, ebp
pop ebp
ret 4