Function at 0x406090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c970
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x424430]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
push ebx
push 1
lea eax, [ebp - 0x60]
push 8
push eax
call fcn.004100b7
add esp, 0x10
test eax, eax
jne 0x4060f2
push 0x4209b8
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 0xffffffff
call fcn.00410bbb
mov eax, dword [ebp - 0x60]
add eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
adc dword [ebp - 0x5c], edx
push edi
push eax
push ebx
mov dword [ebp - 0x60], eax
call fcn.0041044d
add esp, 0xc
test eax, eax
je 0x406125
push 0x4209b8
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0xffffffff
call fcn.00410bbb
push ebx
push 1
lea ecx, [ebp - 0x11]
push 1
push ecx
call fcn.004100b7
add esp, 0x10
test eax, eax
jne 0x40614f
push 0x4209b8
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], 0xffffffff
call fcn.00410bbb
mov al, byte [ebp - 0x11]
and al, 7
cmp al, 1
jne 0x4062b0
push ebx
push 1
lea eax, [ebp - 0x68]
push 8
push eax
call fcn.004100b7
add esp, 0x10
test eax, eax
jne 0x406186
push 0x4209b8
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x2c], 0xffffffff
call fcn.00410bbb
push ebx
push 1
lea edx, [ebp - 0x58]
push 8
push edx
call fcn.004100b7
add esp, 0x10
test eax, eax
jne 0x4061b0
push 0x4209b8
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0xffffffff
call fcn.00410bbb
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0040f3f2
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
cmp esi, edi
jne 0x4061da
push 0x4209b8
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x34], 0xffffffff
call fcn.00410bbb
mov eax, dword [ebp - 0x68]
push eax
call fcn.0040f3f2
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x406204
push 0x4209b8
lea ecx, [ebp - 0x38]
push ecx
mov dword [ebp - 0x38], 0xffffffff
call fcn.00410bbb
mov edx, dword [ebp - 0x68]
push ebx
push 1
push edx
push edi
call fcn.004100b7
add esp, 0x10
test eax, eax
jne 0x40622d
push 0x4209b8
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0xffffffff
call fcn.00410bbb
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x58]
push edx
push edi
push eax
push esi
mov dword [eax], ecx
call fcn.0040c8f0
add esp, 0x10
test eax, eax
jne 0x40629b
push edi
call fcn.0040fe0c
add esp, 4
mov dword [ebp - 0x1c], 0
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
push edx
push eax
mov ecx, esi
call fcn.00404270
add esp, 8
push esi
call fcn.0040fe0c
add esp, 4
test byte [ebp - 0x11], 0x80
mov dword [ebp - 0x18], edi
jne 0x4060c8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4209b8
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0xffffffff
call fcn.00410bbb
test al, al
jne 0x406343
push ebx
push 1
lea ecx, [ebp - 0x58]
push 8
push ecx
call fcn.004100b7
add esp, 0x10
test eax, eax
jne 0x4062e2
push 0x4209b8
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x44], 0xffffffff
call fcn.00410bbb
cmp dword [ebp - 0x54], edi
ja 0x4062ec
cmp dword [ebp - 0x58], edi
jbe 0x406277
mov eax, dword [ebp - 0x58]
push eax
call fcn.0040f3f2
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
cmp esi, edi
jne 0x406316
push 0x4209b8
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x48], 0xffffffff
call fcn.00410bbb
mov edx, dword [ebp - 0x58]
push ebx
push 1
push edx
push esi
call fcn.004100b7
add esp, 0x10
test eax, eax
jne 0x40625a
push 0x4209b8
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0xffffffff
call fcn.00410bbb
push 0x4209b8
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x50], 0xffffffff
call fcn.00410bbb
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0040fe0c
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040fe0c
add esp, 8
mov eax, 0x405773
ret