Function at 0x40cfb0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x454046
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x46fb88]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46fb88]
xor eax, esp
push eax
lea eax, [esp + 0x360]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041b558
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40d009
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.0040cf50
mov ebp, dword [esp + 0x14]
push 0x45ab14
push ebp
call fcn.0043dd66
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x40d064
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 0x40d2a5
call fcn.0041b558
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40d07e
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.0040cf80
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.0042af61
push edi
push 0x218
lea eax, [esp + 0x14c]
push 1
push eax
call fcn.0043dc85
mov ecx, dword [esp + 0x154]
dec ecx
add esp, 0x10
cmp ecx, 7
ja 0x40d25a
lea ecx, [esp + 0x24c]
lea eax, [esi + 0x118]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d120
cmp dl, bl
je 0x40d11c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d120
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x40d100
xor eax, eax
jmp 0x40d125
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40d25a
lea ecx, [esp + 0x148]
lea eax, [esi + 0x14]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d157
cmp dl, bl
je 0x40d153
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d157
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x40d137
xor eax, eax
jmp 0x40d15c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40d25a
mov edx, dword [esp + 0x354]
cmp edx, dword [esi + 0x220]
jne 0x40d25a
mov eax, dword [esp + 0x358]
cdq
cmp eax, dword [esp + 0x24]
jne 0x40d25a
cmp edx, dword [esp + 0x28]
jne 0x40d25a
mov ebp, dword [esp + 0x370]
cmp ebp, ebx
jne 0x40d1cd
mov eax, dword [esp + 0x350]
cmp eax, dword [esi + 0x21c]
je 0x40d1cd
push edi
call fcn.0043d969
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00401340
lea ecx, [esp + 0x14]
call fcn.00401340
jmp 0x40d2b1
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.0043dc85
push edi
call fcn.0043d969
mov edx, dword [esp + 0x158]
add esp, 0x14
xor ecx, ecx
cmp edx, ebx
mov dword [esi + 0x26c], ebx
jle 0x40d223
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 0x40d210
cmp ecx, dword [esp + 0x350]
jne 0x40d1b6
cmp ebp, ebx
jne 0x40d241
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 0x40d2b3
push edi
call fcn.0043d969
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 0x40d286
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 0x40d2b1
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.0043b6e4
add esp, 0x358
ret 4