Function at 0x407860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45565a
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x478584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], edi
mov eax, dword [0x47839c]
mov edx, dword [eax + 0xc]
mov ecx, 0x47839c
mov dword [ebp - 0x424], ebx
call edx
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], edi
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x420], 1
call fcn.00407580
add esp, 4
mov dword [ebp - 4], 2
mov edx, dword [0x47839c]
mov eax, dword [edx + 0xc]
mov ecx, 0x47839c
call eax
add eax, 0x10
mov dword [ebp - 0x414], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x418]
cmp dword [ecx - 0xc], edi
je 0x407aa8
push 0x45eb7c
push ecx
call fcn.0043fa7b
mov esi, eax
add esp, 8
cmp esi, edi
je 0x407aa8
push 2
push edi
push esi
call fcn.0043f941
push esi
call fcn.0043f852
push 0
push 0
push esi
mov edi, eax
call fcn.0043f941
push esi
push 2
lea ecx, [ebp - 0x210]
push 1
push ecx
call fcn.0043f6a1
push esi
push 1
lea edx, [ebp - 0x410]
push 4
push edx
call fcn.0043f6a1
movzx eax, byte [ebp - 0x410]
movzx ecx, byte [ebp - 0x40f]
movzx edx, byte [ebp - 0x40e]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x40d]
shl eax, 8
add eax, edx
shl eax, 8
add esp, 0x3c
add eax, ecx
cmp byte [ebp - 0x210], 0
jne 0x4079bf
cmp byte [ebp - 0x20f], 0xbf
jne 0x4079bf
add edi, 0xfffffffa
lea ecx, [ebp - 0x414]
cmp edi, eax
jne 0x4079b3
push 0x45eb74
call fcn.00402400
jmp 0x4079d1
push str.WRONGLEN
call fcn.00402400
jmp 0x4079d1
push 5
push str.UNSOL
lea ecx, [ebp - 0x414]
call fcn.004019a0
lea edx, [ebp - 0x414]
push 0x45eb74
push edx
call fcn.004061a0
add esp, 8
test al, al
je 0x407a9d
push 0
push 0x10
push esi
call fcn.0043f941
push esi
push 2
lea eax, [ebp - 0x210]
push 1
push eax
call fcn.0043f6a1
movzx eax, byte [ebp - 0x210]
movzx ecx, byte [ebp - 0x20f]
shl eax, 8
add eax, ecx
push 1
add eax, 4
push eax
push esi
call fcn.0043f941
push esi
call fcn.00405f00
dec eax
shr eax, 1
push 1
inc eax
push eax
push esi
call fcn.0043f941
push esi
call fcn.00405f00
lea edi, [eax - 1]
push esi
shr edi, 1
push edi
lea edx, [ebp - 0x210]
push 1
push edx
call fcn.0043f6a1
add esp, 0x4c
push edi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x41c]
call fcn.004066d0
mov byte [ebp - 4], 5
push eax
mov ecx, ebx
call fcn.00401f40
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x41c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.0043f3e3
add esp, 4
xor edi, edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ace
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407af3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dfbe
mov esp, ebp
pop ebp
ret