Function at 0x40c150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4224c3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x428060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov eax, ebx
mov edi, ecx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c190
sub eax, edx
push eax
push ebx
mov ecx, edi
call fcn.00401ed0
push 0x425068
push ebx
call fcn.0040fad2
mov esi, eax
add esp, 8
test esi, esi
je 0x40c1f6
push esi
call fcn.004155e9
add esp, 4
lea ecx, [ebp - 0x98]
push ecx
push eax
call fcn.0040feee
add esp, 8
push esi
test eax, eax
je 0x40c1e4
call fcn.0040fe70
add esp, 4
or eax, 0xffffffff
jmp 0x40c42d
call fcn.0040fe70
mov esi, dword [ebp - 0x84]
add esp, 4
test esi, esi
jg 0x40c1fe
or eax, 0xffffffff
jmp 0x40c42d
push 0x425068
lea edx, [ebp - 0x58]
push ebx
push edx
mov dword [ebp - 0x58], 0
call fcn.0040fae9
add esp, 0xc
cmp dword [ebp - 0x58], 0
je 0x40c1f6
lea eax, [esi + 1]
push eax
mov dword [ebp - 4], 0
call fcn.0040efd4
mov ebx, eax
add esp, 4
mov dword [ebp - 0x60], ebx
test ebx, ebx
je 0x40c428
mov dword [ebp - 0x64], ebx
mov dword [ebp - 4], 2
mov byte [esi + ebx], 0
mov ecx, dword [ebp - 0x58]
push ecx
push esi
push 1
push ebx
call fcn.0040fddc
mov esi, eax
mov byte [esi + ebx], 0
mov edx, dword [ebp - 0x58]
push edx
call fcn.0040fe70
add esp, 0x14
push esi
push 0x42506c
push ebx
mov eax, edi
call fcn.0040c690
xor eax, eax
mov esi, 0xf
mov byte [ebp - 0x4d], 1
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov byte [ebp - 4], 4
mov ecx, dword [edi + 0x80]
sub ecx, dword [edi + 0x7c]
mov dword [ebp - 0x54], eax
sar ecx, 2
mov dword [ebp - 0x5c], eax
test ecx, ecx
jbe 0x40c3e4
mov edx, dword [edi + 0x80]
sub edx, dword [edi + 0x7c]
sar edx, 2
cmp eax, edx
ja 0x40c3b2
test eax, eax
jne 0x40c2cf
mov esi, ebx
jmp 0x40c2ef
mov ecx, dword [edi + 0x80]
sub ecx, dword [edi + 0x7c]
sar ecx, 2
cmp eax, ecx
jb 0x40c2e4
call fcn.0040f353
mov edx, dword [edi + 0x7c]
mov eax, dword [ebp - 0x5c]
mov esi, dword [edx + eax*4]
add esi, ebx
test esi, esi
je 0x40c3b2
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c300
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.00401ed0
call fcn.0040d2c0
cmp byte [ebp - 0x4d], 0
je 0x40c35f
test al, al
je 0x40c34e
push 1
lea ecx, [edi + 0x50]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040e460
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x40c348
lea edx, [ebp - 0x30]
push edx
lea ebx, [edi + 0x38]
call fcn.004094e0
mov ebx, dword [ebp - 0x60]
jmp 0x40c3b2
mov byte [ebp - 0x4d], 0
jmp 0x40c3b2
lea eax, [ebp - 0x30]
push eax
lea ebx, [edi + 0x38]
call fcn.004094e0
mov ebx, dword [ebp - 0x60]
jmp 0x40c3b2
test al, al
je 0x40c3a7
push esi
lea ecx, [ebp - 0x84]
call fcn.00401b20
push 1
lea ecx, [edi + 0x50]
push ecx
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 5
call fcn.0040e460
lea ecx, [ebp - 0x84]
mov esi, eax
mov byte [ebp - 4], 4
call fcn.00401b60
test esi, esi
jne 0x40c3a2
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x40c3b2
jmp 0x40c3aa
mov dword [ebp - 0x54], esi
jmp 0x40c3b2
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x30]
call fcn.0040d550
mov edx, dword [edi + 0x80]
sub edx, dword [edi + 0x7c]
mov eax, dword [ebp - 0x5c]
inc eax
sar edx, 2
mov dword [ebp - 0x5c], eax
cmp eax, edx
jb 0x40c2b3
cmp dword [ebp - 0x18], 0x10
jb 0x40c3df
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040f38f
add esp, 4
mov esi, 0xf
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x40c404
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0040f38f
add esp, 4
mov edx, dword [ebp - 0x64]
push edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.0040f38f
add esp, 4
xor eax, eax
jmp 0x40c42d
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040efdf
mov esp, ebp
pop ebp
ret