Function at 0x40be60
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44fdf6
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x469b70]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x469b70]
xor eax, esp
push eax
lea eax, [esp + 0x360]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00417336
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40beb9
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x36c], ebx
call fcn.0040be00
mov ebp, dword [esp + 0x14]
push 0x455cf4
push ebp
call fcn.00439a95
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x40bf14
lea eax, [ebp - 0x10]
mov dword [esp + 0x368], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40c155
call fcn.00417336
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40bf2e
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov byte [esp + 0x370], 1
call fcn.0040be30
mov ebp, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.00426fb0
push edi
push 0x218
lea eax, [esp + 0x14c]
push 1
push eax
call fcn.004399b4
mov ecx, dword [esp + 0x154]
dec ecx
add esp, 0x10
cmp ecx, 7
ja 0x40c10a
lea ecx, [esp + 0x24c]
lea eax, [esi + 0x118]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bfd0
cmp dl, bl
je 0x40bfcc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bfd0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x40bfb0
xor eax, eax
jmp 0x40bfd5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40c10a
lea ecx, [esp + 0x148]
lea eax, [esi + 0x14]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40c007
cmp dl, bl
je 0x40c003
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40c007
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x40bfe7
xor eax, eax
jmp 0x40c00c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40c10a
mov edx, dword [esp + 0x354]
cmp edx, dword [esi + 0x220]
jne 0x40c10a
mov eax, dword [esp + 0x358]
cdq
cmp eax, dword [esp + 0x24]
jne 0x40c10a
cmp edx, dword [esp + 0x28]
jne 0x40c10a
mov ebp, dword [esp + 0x370]
cmp ebp, ebx
jne 0x40c07d
mov eax, dword [esp + 0x350]
cmp eax, dword [esi + 0x21c]
je 0x40c07d
push edi
call fcn.00439698
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00401340
lea ecx, [esp + 0x14]
call fcn.00401340
jmp 0x40c161
mov eax, dword [esp + 0x144]
lea ecx, [eax + eax*2]
add ecx, ecx
push edi
add ecx, ecx
push ecx
lea edx, [esi + 0x290]
push 1
push edx
call fcn.004399b4
push edi
call fcn.00439698
mov edx, dword [esp + 0x158]
add esp, 0x14
xor ecx, ecx
cmp edx, ebx
mov dword [esi + 0x26c], ebx
jle 0x40c0d3
lea eax, [esi + 0x294]
lea ecx, [ecx]
add ecx, dword [eax + 4]
mov edi, dword [eax]
add dword [esi + 0x26c], edi
add eax, 0xc
sub edx, 1
jne 0x40c0c0
cmp ecx, dword [esp + 0x350]
jne 0x40c066
cmp ebp, ebx
jne 0x40c0f1
lea edi, [esi + 0x10]
mov ecx, 0x86
lea esi, [esp + 0x144]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
call fcn.00401340
lea ecx, [esp + 0x14]
call fcn.00401340
mov eax, 1
jmp 0x40c163
push edi
call fcn.00439698
lea eax, [ebp - 0x10]
add esp, 4
mov byte [esp + 0x368], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c136
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x368], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c161
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x360]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x348]
xor ecx, esp
call fcn.00437657
add esp, 0x358
ret 4