Function at 0x4b62a0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x14
push ebx
mov ebx, ecx
and eax, 3
jne 0x4b62bb
mov eax, 0x8202000a
pop ebx
add esp, 0x14
ret 0x14
mov edx, eax
or edx, 1
test byte [esp + 0x24], 2
push ebp
cmove edx, eax
mov ecx, edx
mov dword [esp + 8], edx
shl ecx, 0x1f
mov eax, edx
mov edx, ecx
or edx, 0x40000000
test al, 2
push esi
push edi
mov edi, dword [esp + 0x28]
cmove edx, ecx
mov dword [esp + 0x30], edx
test edi, edi
je 0x4b6392
mov esi, edi
lea ecx, [esi + 2]
jmp 0x4b6300
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4b6300
sub esi, ecx
mov ecx, dword [ebx + 0x20]
sar esi, 1
test esi, esi
jle 0x4b6395
cmp edi, ecx
je 0x4b6382
lea eax, [esi + 1]
cmp eax, 0x3fffffff
ja 0x4b636a
add eax, eax
push eax
push ecx
call fcn.0040be80
mov edx, eax
add esp, 8
test edx, edx
je 0x4b636a
cmp dword [ebx + 0x20], 0
jne 0x4b6345
mov ecx, dword [ebx + 0x24]
xor eax, eax
mov word [edx + ecx*2], ax
lea eax, [esi + esi]
mov dword [ebx + 0x20], edx
push eax
push edi
push edx
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x24], esi
call fcn.004930c0
mov ecx, dword [ebx + 0x24]
add esp, 0xc
mov eax, dword [ebx + 0x20]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x4b63b7
mov edx, dword [ebx]
mov ecx, ebx
mov edi, 0xc20203e8
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
cmp esi, dword [ebx + 0x24]
jae 0x4b63b7
xor eax, eax
mov word [ecx + esi*2], ax
mov dword [ebx + 0x24], esi
jmp 0x4b63b7
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x4b63a2
push ecx
call fcn.0040bd60
add esp, 4
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x24], 0
mov ebp, dword [esp + 0x34]
push 0
push dword [esp + 0x3c]
push dword [esp + 0x34]
push 0
push ebp
push dword [esp + 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebx + 0x34], esi
cmp esi, 0xffffffff
jne 0x4b6423
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
js 0x4b64a9
je 0x4b640b
mov edx, dword [ebx]
mov ecx, ebx
movzx edi, di
or edi, 0x83ff0000
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
mov edx, dword [ebx]
mov ecx, ebx
mov edi, 0xc202000f
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x3c], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4b6462
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4b6462
xor edi, edi
jmp 0x4b6480
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
js 0x4b6480
je 0x4b647b
movzx edi, di
or edi, 0x83ff0000
jmp 0x4b6480
mov edi, 0xc202000f
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x40], ebp
test edi, edi
jns 0x4b64b0
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14