Function at 0x456150
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bc7a1
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x4e51e0]
xor eax, esp
mov dword [esp + 0x83c], eax
push ebx
push ebp
push edi
mov eax, dword [0x4e51e0]
xor eax, esp
push eax
lea eax, [esp + 0x850]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [esi + 0x108], ebx
jne 0x45619b
xor eax, eax
jmp 0x4563ca
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0x4561b3
push eax
push 8
push 1
push esi
call fcn.004b3eeb
add esp, 0x10
mov eax, dword [esi + 0x108]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x10], edi
je 0x4561d9
push eax
push 4
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004b3eeb
mov edi, dword [esp + 0x20]
add esp, 0x10
cmp edi, ebx
mov ebp, 0xc
jle 0x456258
push 0x3ff
lea ecx, [esp + 0x51]
push ebx
push ecx
lea ebp, [edi + 0xc]
mov byte [esp + 0x58], bl
call fcn.0048ffc0
mov eax, dword [esi + 0x108]
add esp, 0xc
cmp eax, ebx
je 0x456217
push eax
push edi
lea edx, [esp + 0x54]
push 1
push edx
call fcn.004b3eeb
add esp, 0x10
cmp byte [esp + 0x4c], bl
je 0x456258
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
call fcn.00402df0
push ebx
lea ecx, [esi + 0x6c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x864], ebx
call fcn.0042c0b0
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x858], 0xffffffff
call fcn.00402dc0
mov eax, dword [esi + 0x108]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x10], edi
je 0x45627e
push eax
push 4
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004b3eeb
mov edi, dword [esp + 0x20]
add esp, 0x10
add ebp, 4
cmp edi, ebx
jle 0x4562fe
push 0x3ff
lea ecx, [esp + 0x51]
push ebx
push ecx
add ebp, edi
mov byte [esp + 0x58], bl
call fcn.0048ffc0
mov eax, dword [esi + 0x108]
add esp, 0xc
cmp eax, ebx
je 0x4562b9
push eax
push edi
lea edx, [esp + 0x54]
push 1
push edx
call fcn.004b3eeb
add esp, 0x10
cmp byte [esp + 0x4c], bl
je 0x4562fe
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
call fcn.00402df0
push ebx
lea ecx, [esi + 0x50]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x864], 1
call fcn.0042c0b0
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x858], 0xffffffff
call fcn.00402dc0
mov eax, dword [esi + 0x108]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x10], edi
je 0x456324
push eax
push 4
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004b3eeb
mov edi, dword [esp + 0x20]
add esp, 0x10
add ebp, 4
cmp edi, ebx
jle 0x4563ba
push 0x3ff
lea ecx, [esp + 0x451]
push ebx
push ecx
add ebp, edi
mov byte [esp + 0x458], bl
call fcn.0048ffc0
mov eax, dword [esi + 0x108]
add esp, 0xc
cmp eax, ebx
je 0x45636c
push eax
push edi
lea edx, [esp + 0x454]
push 1
push edx
call fcn.004b3eeb
add esp, 0x10
cmp byte [esp + 0x44c], bl
je 0x4563ba
lea eax, [esp + 0x44c]
push eax
lea ecx, [esp + 0x34]
call fcn.00402df0
push ebx
lea ecx, [esi + 0xa4]
push ecx
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x864], 2
call fcn.0042c0b0
add esp, 0xc
lea ecx, [esp + 0x30]
mov dword [esp + 0x858], 0xffffffff
call fcn.00402dc0
push esi
mov dword [esi + 0x10], ebp
call fcn.00456590
xor eax, eax
cmp ebp, ebx
setg al
mov ecx, dword [esp + 0x850]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x83c]
xor ecx, esp
call fcn.0048a8fe
add esp, 0x84c
ret