Function at 0x40d360
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x616c5e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
push esi
push edi
mov eax, dword [0x69cffc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov eax, dword [0x6aa3cc]
add eax, 0xfffffff0
push eax
call fcn.004027b0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00404500
push 0x66ecac
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x68]
push eax
call fcn.00404520
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x34]
push dword [eax - 0xc]
push eax
call fcn.00414b40
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x34]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d422
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x58]
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov dword [ebp - 0x64], eax
test ecx, ecx
je 0x40d443
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x40d45b
call fcn.0044a657
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x40d8bc
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
push 1
push 0x66ecf8
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00404650
add esp, 0x14
lea eax, [ebp - 0x14]
push str.data2.cab
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004042f0
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d4b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x66ece8
push dword [ebp - 0x5c]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x1c], 0
call fcn.005f21b2
mov eax, dword [ebp - 0x1c]
add esp, 0xc
test eax, eax
jne 0x40d4e6
xor ecx, ecx
jmp 0x40d538
push 2
push 0
push eax
call fcn.005f2f57
add esp, 0xc
push dword [ebp - 0x1c]
call fcn.005f2c75
add esp, 4
mov esi, eax
push dword [ebp - 0x1c]
call fcn.005f2525
add esp, 4
push esi
call fcn.00447f05
add esp, 4
mov dword [ebp - 0x34], eax
push dword [ebp - 0x1c]
push esi
push 1
push eax
call fcn.005f23ea
push dword [ebp - 0x1c]
mov esi, eax
call fcn.005f1ddf
xor eax, eax
add esp, 0x14
cmp eax, esi
sbb ecx, ecx
and ecx, esi
mov eax, 0x2aaaaaab
mov dword [ebp - 0x54], vtable.CArray_struct_WORKSTATUSBLOCK__struct_WORKSTATUSBLOCK_.0
imul ecx
xor edi, edi
xor esi, esi
sar edx, 2
mov eax, edx
mov dword [ebp - 0x50], edi
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 5
test ecx, ecx
jle 0x40d7a6
xor ecx, ecx
mov edx, 0x18
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00447f05
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x40d5cc
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40d5d1
lea edi, [ecx + 8]
mov esi, eax
lea eax, [edi - 8]
mov dword [edi + 8], 0
push eax
call fcn.005ef5a2
add esp, 4
push edi
call fcn.005ef5a2
add esp, 4
add edi, 0x18
sub esi, 1
jne 0x40d5a0
mov edi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
jmp 0x40d5d1
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x2c]
lea eax, [eax + eax*2]
shl eax, 3
push eax
push dword [ebp - 0x34]
push ecx
call fcn.005e86c0
add esp, 0xc
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x2c], 0
jle 0x40d79b
mov edi, dword [ebp - 0x14]
nop dword [eax + eax]
lea eax, [ebp - 0x40]
push eax
call fcn.005ef5a2
mov ecx, dword [ebp - 0x3c]
add esp, 4
test ecx, ecx
jl 0x40d61c
mov eax, dword [ebp - 0x40]
jg 0x40d62a
test eax, eax
jne 0x40d62a
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [edi + 4]
cmp edx, ecx
mov dword [ebp - 0x30], edx
mov edx, dword [edi]
jg 0x40d785
jl 0x40d644
cmp edx, eax
ja 0x40d785
cmp dword [ebp - 0x18], 1
jb 0x40d71f
lea edx, [esi - 1]
test edx, edx
js 0x40d8c6
cmp edx, esi
jge 0x40d8c6
mov ecx, dword [ebp - 0x50]
lea eax, [edx + edx*2]
movups xmm1, xmmword [ecx + eax*8]
movq xmm0, qword [ecx + eax*8 + 0x10]
mov ecx, dword [edi]
movq qword [ebp - 0xa0], xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
movd eax, xmm0
psrldq xmm1, 0xc
sub ecx, eax
movd eax, xmm1
sbb dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jg 0x40d6d7
jl 0x40d6a2
cmp ecx, 5
jae 0x40d6d7
mov eax, dword [edi + 0x10]
cmp eax, dword [ebp - 0xa0]
jne 0x40d6d7
cmp edx, esi
jge 0x40d8c6
mov ecx, dword [edi + 0xc]
lea edx, [edx + edx*2]
mov eax, dword [edi + 8]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x50]
mov dword [ecx + edx*8 + 8], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x24]
mov dword [eax + edx*8 + 0xc], ecx
jmp 0x40d785
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x80], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x70], xmm0
test esi, esi
js 0x40d8c6
push ecx
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x54]
call fcn.00413a40
mov eax, dword [ebp - 0x80]
lea edx, [esi + esi*2]
mov esi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x7c]
mov dword [esi + edx*8], eax
mov eax, dword [ebp - 0x78]
mov dword [esi + edx*8 + 4], ecx
mov ecx, dword [ebp - 0x74]
mov dword [esi + edx*8 + 8], eax
mov eax, dword [ebp - 0x70]
jmp 0x40d77a
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x98], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x88], xmm0
test esi, esi
js 0x40d8c6
push ecx
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x54]
call fcn.00413a40
mov eax, dword [ebp - 0x98]
lea edx, [esi + esi*2]
mov esi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x94]
mov dword [esi + edx*8], eax
mov eax, dword [ebp - 0x90]
mov dword [esi + edx*8 + 4], ecx
mov ecx, dword [ebp - 0x8c]
mov dword [esi + edx*8 + 8], eax
mov eax, dword [ebp - 0x88]
mov dword [esi + edx*8 + 0xc], ecx
mov dword [esi + edx*8 + 0x10], eax
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x18]
add edi, 0x18
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x2c]
jl 0x40d600
mov edi, dword [ebp - 0x50]
push dword [ebp - 0x14]
call fcn.00447f00
add esp, 4
push dword [ebp - 0x34]
call fcn.00447f00
add esp, 4
xor eax, eax
test esi, esi
jle 0x40d7cc
test eax, eax
js 0x40d8c6
cmp eax, esi
jge 0x40d8c6
inc eax
cmp eax, esi
jl 0x40d7b7
lea eax, [ebp - 0x38]
push eax
call fcn.005ef5a2
add esp, 4
lea eax, [ebp - 0x40]
push eax
call fcn.005ef5a2
mov ecx, dword [ebp - 0x3c]
add esp, 4
test ecx, ecx
jl 0x40d7f4
mov eax, dword [ebp - 0x40]
jg 0x40d802
test eax, eax
jne 0x40d802
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push 0x24
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
call fcn.00447eb9
mov esi, eax
add esp, 4
test esi, esi
je 0x40d82b
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
jmp 0x40d82d
xor esi, esi
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.005f14a6
add esp, 8
test eax, eax
jne 0x40d853
push esi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi], 1
call fcn.005f33e7
add esp, 4
push 0x24
push esi
call fcn.0058f106
add esp, 8
test edi, edi
je 0x40d86b
push edi
call fcn.00447f00
add esp, 4
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x5c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d88c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x64]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40d8a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.00403270
call fcn.0044a186
int3