Function at 0x4e3cb0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d4a3
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x56f28c]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4bc], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
call fcn.004703f0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x4e3d10
mov dword [ebp - 0x20], 0xa0
jmp 0x4e4156
push 0
push 0
push 0x80
push 3
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.004e4c80
test eax, eax
je 0x4e3d37
jmp 0x4e4156
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0046ade0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4e3d68
cmp dword [ebp - 0x18], 0
ja 0x4e3d68
cmp dword [ebp - 0x1c], 0x12c00000
ja 0x4e3d68
cmp dword [ebp - 0x1c], 0x3c
jae 0x4e3d74
mov dword [ebp - 0x20], 0x18
jmp 0x4e4156
push 0x3c
lea edx, [ebp - 0x60]
push edx
lea ecx, [ebp - 0x14]
call fcn.004e4ce0
test eax, eax
je 0x4e3d8b
jmp 0x4e4156
cmp dword [ebp - 0x60], 0x33363044
jne 0x4e3dbb
cmp dword [ebp - 0x5c], 0x3c
jb 0x4e3dbb
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x1c]
ja 0x4e3dbb
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x5c]
cmp dword [ebp - 0x4c], ecx
jne 0x4e3dbb
cmp dword [ebp - 0x58], 1
ja 0x4e3dbb
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp + 0xc]
jae 0x4e3dc7
mov dword [ebp - 0x20], 0xb
jmp 0x4e4156
mov eax, dword [ebp - 0x1c]
add eax, 0x14
push eax
call fcn.004feb13
add esp, 4
mov dword [ebp - 0x4a0], eax
mov ecx, dword [ebp - 0x4a0]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x4e3df7
mov dword [ebp - 0x20], 0xe
jmp 0x4e4156
mov edx, dword [ebp - 0x1c]
add edx, 0x14
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00500270
add esp, 0xc
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.004e4d40
test eax, eax
je 0x4e3e23
jmp 0x4e4156
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x14]
call fcn.004e4ce0
test eax, eax
je 0x4e3e3c
jmp 0x4e4156
cmp dword [ebp - 0x58], 1
jne 0x4e3eee
lea ecx, [ebp - 0x46c]
call fcn.004e4e30
mov byte [ebp - 4], 1
push 0
push 0x4c10db7
lea ecx, [ebp - 0x46c]
call fcn.004e4f30
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
cmp dword [ecx + 0x28], 2
je 0x4e3e94
mov edx, dword [ebp - 0x64]
cmp dword [edx + 0x28], 3
je 0x4e3e94
push 0x10
push 0
mov eax, dword [ebp - 0x64]
add eax, 0x18
push eax
call fcn.00500270
add esp, 0xc
jmp 0x4e3e9e
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 0x18], 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x46c]
call fcn.004e5040
mov dword [ebp - 0x470], eax
mov ecx, dword [ebp - 0x470]
cmp ecx, dword [ebp - 0x48]
je 0x4e3edf
mov dword [ebp - 0x20], 0xd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x46c]
call fcn.004e4e50
jmp 0x4e4156
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x46c]
call fcn.004e4e50
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x4c0], edx
cmp dword [ebp - 0x4c0], 1
je 0x4e3f24
cmp dword [ebp - 0x4c0], 1
jbe 0x4e412a
cmp dword [ebp - 0x4c0], 3
jbe 0x4e3fc3
jmp 0x4e412a
cmp dword [ebp + 0x10], 0
je 0x4e3f3d
cmp dword [ebp + 0x14], 0
je 0x4e3f3d
mov eax, dword [ebp + 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x4c1], cl
jmp 0x4e3f46
mov dl, byte [ebp - 0x34]
mov byte [ebp - 0x4c1], dl
mov al, byte [ebp - 0x4c1]
mov byte [ebp - 0x475], al
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x47c], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x5c]
mov dword [ebp - 0x474], edx
mov dword [ebp - 0x480], 0
jmp 0x4e3f85
mov eax, dword [ebp - 0x480]
add eax, 1
mov dword [ebp - 0x480], eax
mov ecx, dword [ebp - 0x480]
cmp ecx, dword [ebp - 0x47c]
jae 0x4e3fbe
movzx edx, byte [ebp - 0x475]
mov eax, dword [ebp - 0x474]
movzx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp - 0x474]
mov byte [edx], cl
mov eax, dword [ebp - 0x474]
add eax, 1
mov dword [ebp - 0x474], eax
jmp 0x4e3f76
jmp 0x4e412a
cmp dword [ebp + 0x10], 0
je 0x4e3fdc
cmp dword [ebp + 0x14], 0
je 0x4e3fdc
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx]
mov byte [ebp - 0x4c2], dl
jmp 0x4e3fe5
mov al, byte [ebp - 0x34]
mov byte [ebp - 0x4c2], al
mov cl, byte [ebp - 0x4c2]
mov byte [ebp - 0x491], cl
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x5c]
mov dword [ebp - 0x498], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x5c]
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x49c], 0
jmp 0x4e4024
mov ecx, dword [ebp - 0x49c]
add ecx, 1
mov dword [ebp - 0x49c], ecx
mov edx, dword [ebp - 0x49c]
cmp edx, dword [ebp - 0x498]
jae 0x4e405d
movzx eax, byte [ebp - 0x491]
mov ecx, dword [ebp - 0x484]
movzx edx, byte [ecx]
xor edx, eax
mov eax, dword [ebp - 0x484]
mov byte [eax], dl
mov ecx, dword [ebp - 0x484]
add ecx, 1
mov dword [ebp - 0x484], ecx
jmp 0x4e4015
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x488], edx
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x488]
push eax
call fcn.004feb13
add esp, 4
mov dword [ebp - 0x4a4], eax
mov ecx, dword [ebp - 0x4a4]
mov dword [ebp - 0x48c], ecx
cmp dword [ebp - 0x48c], 0
jne 0x4e4098
jmp 0x4e4156
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x48c]
push ecx
call fcn.00504590
add esp, 0xc
lea edx, [ebp - 0x488]
push edx
mov eax, dword [ebp - 0x48c]
add eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x498]
push ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x4bc]
call fcn.004e4b50
mov dword [ebp - 0x490], eax
cmp dword [ebp - 0x490], 0
jne 0x4e4109
mov ecx, dword [ebp - 0x48c]
mov dword [ebp - 0x4a8], ecx
mov edx, dword [ebp - 0x4a8]
push edx
call fcn.005002ea
add esp, 4
jmp 0x4e4156
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4ac], eax
mov ecx, dword [ebp - 0x4ac]
push ecx
call fcn.005002ea
add esp, 4
mov edx, dword [ebp - 0x48c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x4bc]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov dword [ebp - 0x4b0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004e4da0
mov eax, dword [ebp - 0x4b0]
jmp 0x4e41a3
cmp dword [ebp - 0x20], 0
je 0x4e4166
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x10], 0
je 0x4e4184
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4b4], eax
mov ecx, dword [ebp - 0x4b4]
push ecx
call fcn.005002ea
add esp, 4
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004e4da0
mov eax, dword [ebp - 0x4b8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004ffa01
mov esp, ebp
pop ebp
ret 0x10