Function at 0x4ba720
Capabilities:
Get file size
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x8629d1
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
push esi
mov esi, dword [esp + 0x3c0]
cmp esi, 0xffffffff
jne 0x4ba760
xor eax, eax
pop esi
mov ecx, dword [esp + 0x3ac]
mov dword fs:[0], ecx
add esp, 0x3b8
ret
push ebx
push ebp
push edi
push 0xffffffffffffffff
lea ecx, [esp + 0x4c]
call fcn.00469e90
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x28]
xor edi, edi
push 1
push eax
push edi
push esi
mov dword [esp + 0x3d4], edi
mov dword [esp + 0x38], edi
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], eax
push ecx
push esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push esi
mov dword [esp + 0x54], eax
call ebx
mov ebp, dword [esp + 0x3d0]
lea edx, [esp + 0x10]
push 1
push edx
push edi
push esi
call ebx
cmp eax, dword [esp + 0x44]
jne 0x4ba7d6
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
je 0x4baa32
mov ecx, 0xdb
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
stosb byte es:[edi], al
call fcn.00636b60
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c4], 1
call fcn.00636b60
xor ecx, ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x38], ecx
mov byte [esp + 0x3c4], 2
mov dword [esp + 0x3c], ecx
push ecx
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
push esi
mov dword [esp + 0x44], 0
call fcn.00679580
add esp, 0x14
test eax, eax
je 0x4baa10
lea edx, [esp + 0x30]
push 0
push edx
push 0
push esi
call fcn.00679200
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov edi, edx
add esp, 0x10
mov dword [esp + 0x18], edi
lea ebx, [edi + 1]
test ebx, ebx
jne 0x4ba88e
test eax, eax
je 0x4ba881
push eax
mov dword [esp + 0x24], edx
call fcn.008325dd
add esp, 4
mov dword [ebp + 4], 0
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jmp 0x4ba9b4
test eax, eax
jne 0x4ba8c4
mov edi, ebx
shl edi, 4
push edi
call fcn.008325b4
mov edx, eax
mov ecx, edi
mov dword [ebp + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x4ba9b0
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jg 0x4ba909
cmp edx, ebx
jge 0x4ba8f9
mov ecx, ebx
sub ecx, edx
shl edx, 4
add edx, eax
xor eax, eax
shl ecx, 4
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
mov dword [ebp + 8], ebx
jmp 0x4ba9b4
jle 0x4ba901
sub edx, ebx
mov dword [esp + 0x20], edx
mov dword [ebp + 8], ebx
jmp 0x4ba9b4
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4ba933
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4ba927
mov eax, 4
jmp 0x4ba933
cmp eax, 0x400
jle 0x4ba933
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x24], eax
jl 0x4ba941
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x24]
shl eax, 4
push eax
call fcn.008325b4
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 4
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x24], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edx
shl edx, 4
add edx, eax
xor eax, eax
shl ecx, 4
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 4]
push eax
call fcn.008325dd
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x3d4]
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ecx
mov edi, dword [esp + 0x18]
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x30]
shl edi, 4
add edi, eax
mov byte [esp + 0x3c4], 1
mov dword [edi], edx
mov eax, dword [esp + 0x34]
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x38]
mov dword [edi + 8], ecx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
mov dword [edi + 0xc], edx
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x74]
mov dword [esp + 0x10], eax
call fcn.00636c90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c4], 0
call fcn.00636c90
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4ba7b5
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c4], 1
call fcn.00636c90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c4], 0
call fcn.00636c90
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
push esi
call ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c4], 0xffffffff
call fcn.00469ec0
mov ecx, dword [esp + 0x3bc]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x3b8
ret