Function at 0x4f0370
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591d1d
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5d5de8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
mov ecx, dword [0x611bd8]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x130], ecx
jb 0x4f03c6
add eax, 4
mov dword [ebp - 0x11c], eax
mov eax, dword [eax]
jmp 0x4f03cf
add eax, 4
mov dword [ebp - 0x11c], eax
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x13c], esi
je 0x4f0426
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov edi, eax
push edi
push 0
push 2
push 0
push esi
mov dword [ebp - 0x138], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x12c], ebx
jne 0x4f042d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4f09af
push edi
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebp - 0x124], eax
jne 0x4f0458
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
push esi
call edi
xor al, al
jmp 0x4f09af
mov edi, dword [ebp - 0x130]
mov ebx, dword [edi + 8]
mov edx, dword [ebx + 4]
add edi, 4
xor eax, eax
push edx
push ebx
lea esi, [ebp - 0x170]
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], eax
call fcn.004f18f0
mov ecx, edi
mov esi, eax
call fcn.004f1930
mov dword [ebx + 4], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
cmp esi, eax
jne 0x4f04a8
call fcn.0056999e
cmp esi, dword [edi + 4]
jne 0x4f04b2
call fcn.0056999e
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x12c]
lea eax, [esi + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x134], eax
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
xor eax, eax
mov dword [ebp - 0x18c], 0xf
mov dword [ebp - 0x190], eax
mov byte [ebp - 0x1a0], al
mov ebx, dword [ebp - 0x120]
lea edi, [ebp - 0x164]
mov dword [ebp - 4], eax
call fcn.004f0240
push eax
lea edx, [ebp - 0x21c]
push edx
lea edi, [ebp - 0x1a8]
mov byte [ebp - 4], 1
call fcn.004f1680
mov edi, dword [ebp - 0x130]
push eax
lea eax, [ebp - 0x170]
lea ecx, [edi + 0x10]
push eax
push ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x12c], ecx
call fcn.004f1490
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
lea esi, [ebp - 0x21c]
mov dword [ebp - 0x128], ecx
call fcn.004f0a00
cmp dword [ebp - 0x14c], 0x10
jb 0x4f0567
mov edx, dword [ebp - 0x160]
push edx
call fcn.00569095
add esp, 4
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18c], 0x10
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], esi
mov byte [ebp - 0x160], 0
jb 0x4f059f
mov eax, dword [ebp - 0x1a0]
push eax
call fcn.00569095
add esp, 4
cmp dword [ebp - 0x128], esi
jne 0x4f05ac
call fcn.0056999e
mov ecx, dword [ebp - 0x128]
cmp ebx, dword [ecx + 4]
jne 0x4f05bc
call fcn.0056999e
mov eax, dword [ebp - 0x120]
mov edx, dword [ebp - 0x134]
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebx + 0x2c]
mov dword [ebx + 0x28], edx
call fcn.0043b2f0
mov ecx, dword [ebp - 0x138]
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x11c]
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x54], ecx
cmp dword [edx + 0x18], 0x10
jb 0x4f05f7
mov eax, dword [eax]
mov edx, dword [edi]
push 0x5a6e2c
push eax
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x120], ebx
je 0x4f0426
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
push ebx
push 1
push 4
lea eax, [ebp - 0x148]
push eax
mov ecx, edi
mov dword [ebp - 0x148], esi
call edx
cmp dword [ebp - 0x148], 0xbac04ac0
mov eax, dword [edi]
push ebx
je 0x4f064e
mov edx, dword [eax + 8]
mov ecx, edi
call edx
xor al, al
jmp 0x4f09af
mov edx, dword [eax + 0x14]
push 1
push 4
lea ecx, [ebp - 0x144]
push ecx
mov ecx, edi
mov dword [ebp - 0x144], esi
call edx
cmp dword [ebp - 0x144], esi
mov eax, dword [edi]
push ebx
ja 0x4f0640
mov edx, dword [eax + 0x14]
push 1
push 1
lea ecx, [ebp - 0x115]
push ecx
mov ecx, edi
mov dword [ebp - 0x13c], esi
mov byte [ebp - 0x115], 0
call edx
test byte [ebp - 0x115], 0x80
jne 0x4f08fc
lea ecx, [ecx]
cmp eax, esi
je 0x4f08fc
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push ebx
push 1
push 1
lea ecx, [ebp - 0x116]
push ecx
mov ecx, edi
mov byte [ebp - 0x116], 0
call edx
movzx ecx, byte [ebp - 0x116]
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
push ebx
push ecx
push 1
lea edx, [ebp - 0x114]
push edx
mov ecx, edi
call eax
movzx ecx, byte [ebp - 0x116]
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
push ebx
push 1
push 4
lea eax, [ebp - 0x11c]
mov byte [ebp + ecx - 0x114], 0
push eax
mov ecx, edi
mov dword [ebp - 0x11c], esi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push ebx
push 1
push 8
lea ecx, [ebp - 0x178]
push ecx
mov ecx, edi
call edx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x164]
call fcn.00438950
mov dword [ebp - 4], 3
mov dword [ebp - 0x18c], 0xf
mov dword [ebp - 0x190], esi
mov byte [ebp - 0x1a0], 0
lea ebx, [ebp - 0x164]
lea edi, [ebp - 0x1c4]
mov byte [ebp - 4], 4
call fcn.004f0240
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea edi, [ebp - 0x1a8]
mov byte [ebp - 4], 5
call fcn.004f1680
push eax
mov eax, dword [ebp - 0x12c]
lea edx, [ebp - 0x1d0]
push edx
push eax
mov byte [ebp - 4], 6
call fcn.004f1490
mov ebx, dword [eax]
mov edi, dword [eax + 4]
lea esi, [ebp - 0x21c]
call fcn.004f0a00
mov esi, 0x10
cmp dword [ebp - 0x1ac], esi
jb 0x4f07be
mov ecx, dword [ebp - 0x1c0]
push ecx
call fcn.00569095
add esp, 4
cmp dword [ebp - 0x18c], esi
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
jb 0x4f07f0
mov edx, dword [ebp - 0x1a0]
push edx
call fcn.00569095
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14c], esi
mov dword [ebp - 0x18c], 0xf
mov dword [ebp - 0x190], 0
mov byte [ebp - 0x1a0], 0
jb 0x4f0829
mov eax, dword [ebp - 0x160]
push eax
call fcn.00569095
add esp, 4
test ebx, ebx
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
jne 0x4f084d
call fcn.0056999e
cmp edi, dword [ebx + 4]
jne 0x4f0857
call fcn.0056999e
mov ecx, dword [ebp - 0x134]
lea eax, [ebp - 0x114]
mov dword [edi + 0x28], ecx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4f0870
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [edi + 0x2c]
call fcn.0043dd50
mov eax, dword [ebp - 0x13c]
mov dword [edi + 0x50], eax
mov ecx, dword [ebp - 0x11c]
mov dword [edi + 0x54], ecx
mov edx, dword [ebp - 0x178]
mov dword [edi + 0x48], edx
mov ecx, dword [ebp - 0x174]
mov dword [edi + 0x4c], ecx
add eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x130]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x120]
push eax
push 1
push 1
lea eax, [ebp - 0x115]
push eax
mov byte [ebp - 0x115], 0
call edx
mov ebx, dword [ebp - 0x120]
mov edi, dword [ebp - 0x130]
xor esi, esi
test byte [ebp - 0x115], 0x80
je 0x4f06a0
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ebx
mov ecx, edi
call edx
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov ecx, eax
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], edx
cmp ecx, esi
mov edx, dword [eax + 4]
mov dword [ebp - 0x13c], edx
je 0x4f0936
cmp ecx, eax
je 0x4f0941
call fcn.0056999e
mov ecx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x124]
cmp eax, dword [ebp - 0x13c]
je 0x4f09a3
cmp ecx, esi
jne 0x4f0964
call fcn.0056999e
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x128]
cmp eax, dword [ecx + 4]
jne 0x4f0974
call fcn.0056999e
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x134]
cmp dword [eax + 0x28], ecx
jne 0x4f0988
mov edx, dword [ebp - 0x138]
add dword [eax + 0x50], edx
lea esi, [ebp - 0x128]
call fcn.004f1bd0
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x128]
xor esi, esi
jmp 0x4f0925
mov eax, dword [edi]
mov edx, dword [eax + 8]
push ebx
mov ecx, edi
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005697e2
mov esp, ebp
pop ebp
ret 4