Function at 0x407150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c01d
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x45f040]
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 esi, edx
mov dword [ebp - 0x254], ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x244]
push 0x200
push 0
push eax
mov dword [ebp - 0x258], ebx
mov byte [ebp - 0x245], 1
call fcn.00427c90
add esp, 8
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.00402870
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x34]
cmp edx, 0xffffffff
je 0x407388
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
lea ecx, [ecx + 0x1ff]
shr ecx, 9
test edx, edx
mov dword [ebp - 0x250], ecx
cmove eax, ecx
mov ecx, 0x640
test eax, eax
cmove eax, ecx
cmp dword [ebx + 0x14], 7
mov dword [ebp - 0x24c], eax
mov eax, ebx
jbe 0x4071fd
mov eax, dword [ebx]
push 0x4568b4
push eax
call fcn.0042b596
mov edi, eax
add esp, 8
test edi, edi
je 0x407388
push dword [ebp - 0x24c]
push dword [ebp - 0x250]
push 0x4576f8
call fcn.0040b130
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00406e30
xor ebx, ebx
cmp dword [ebp - 0x24c], ebx
jbe 0x407377
nop dword [eax]
nop dword [eax + eax]
push 0x200
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.00427c90
add esp, 0xc
push edi
call fcn.0043236d
add esp, 4
test eax, eax
jne 0x40728a
push edi
push 0x200
lea eax, [ebp - 0x244]
push 1
push eax
call fcn.0042bbfe
add esp, 0x10
push edi
call fcn.00432399
add esp, 4
test eax, eax
jne 0x407353
lea ecx, [ebp - 0x244]
call fcn.00404020
push dword [ebp - 0x254]
lea eax, [ebp - 0x244]
push 0x200
push 1
push eax
call fcn.0042bffe
add esp, 0x10
cmp eax, 0x200
jne 0x407331
mov ax, word [esi + 0x12]
inc ax
mov word [esi + 0x12], ax
cmp ax, word [esi + 0xc]
jne 0x407313
xor eax, eax
mov word [esi + 0x12], ax
mov ax, word [esi + 0x10]
inc ax
mov word [esi + 0x10], ax
cmp ax, word [esi + 0xa]
jne 0x407313
xor eax, eax
mov word [esi + 0x10], ax
mov ax, word [esi + 0xe]
inc ax
movzx ecx, ax
mov word [esi + 0xe], ax
cmp cx, word [esi + 8]
jbe 0x407313
mov word [esi + 8], cx
mov byte [ebp - 0x245], 0
inc ebx
cmp ebx, dword [ebp - 0x24c]
jb 0x407250
push edi
call fcn.0042b6d2
mov bl, byte [ebp - 0x245]
add esp, 4
jmp 0x40738a
mov dword [esi + 0x14], 0xffffffff
mov eax, 0x45ff2c
cmp dword [0x45ff40], 7
cmova eax, dword [0x45ff2c]
push eax
push 0x4577a4
jmp 0x407367
mov eax, dword [ebp - 0x258]
cmp dword [eax + 0x14], 7
jbe 0x407361
mov eax, dword [eax]
push eax
push 0x457760
call fcn.0040b130
add esp, 8
xor al, al
mov byte [ebp - 0x245], al
push edi
call fcn.0042b6d2
mov bl, byte [ebp - 0x245]
add esp, 4
jmp 0x40738a
xor bl, bl
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmova eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x4073d7
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4073cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4073f5
push ecx
push edx
call fcn.00426602
add esp, 8
mov al, bl
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.004265f4
mov esp, ebp
pop ebp
ret
call fcn.0042b48f
int3