Function at 0x40b650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449fc9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x7c]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
jne 0x40b69f
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x10]
call fcn.0040e830
xor al, al
jmp 0x40b998
mov ecx, dword [ebp - 0x10]
call fcn.0040a210
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00409ef0
mov dword [ebp - 0x14], 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00430df5
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.00432764
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00430df5
add esp, 0xc
cmp dword [ebp - 0x14], 0
jg 0x40b705
push 0
push 0
push 0
push 0xd
mov ecx, dword [ebp - 0x10]
call fcn.0040e830
xor al, al
jmp 0x40b998
lea ecx, [ebp - 0x18]
call fcn.00409640
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.00409580
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
call fcn.00410007
add esp, 4
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004325aa
add esp, 0x10
cmp eax, 1
je 0x40b796
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00410041
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x10]
call fcn.0040e830
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004076a0
mov al, byte [ebp - 0x30]
jmp 0x40b998
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x14]
mov byte [edx], 0
mov eax, dword [ebp - 0x24]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40b900
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x14]
cmp dword [ebp - 0x24], edx
jb 0x40b7e1
movsx eax, word [0x45e554]
add eax, 0x40
push eax
push 0x44d61c
push 0x44d6d8
call fcn.00431a85
add esp, 0xc
mov edx, dword [ebp - 0x24]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x40b83e
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x18]
call fcn.00409950
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x14]
cmp dword [ebp - 0x24], edx
jbe 0x40b839
movsx eax, word [0x45e554]
add eax, 0x47
push eax
push 0x44d61c
push 0x44d6c4
call fcn.00431a85
add esp, 0xc
jmp 0x40b8fb
mov edx, dword [ebp - 0x24]
movsx eax, byte [edx]
cmp eax, 0xd
jne 0x40b8f2
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
test ecx, ecx
jle 0x40b86a
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.00409950
push 0xa
lea ecx, [ebp - 0x18]
call fcn.00409d00
mov ecx, dword [ebp - 0x24]
movsx edx, byte [ecx + 1]
cmp edx, 0xa
jne 0x40b8b9
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x14]
cmp dword [ebp - 0x24], edx
jbe 0x40b8b7
movsx eax, word [0x45e554]
add eax, 0x55
push eax
push 0x44d61c
push 0x44d6c4
call fcn.00431a85
add esp, 0xc
jmp 0x40b8f0
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x14]
cmp dword [ebp - 0x24], ecx
jbe 0x40b8f0
movsx edx, word [0x45e554]
add edx, 0x5b
push edx
push 0x44d61c
push 0x44d6c4
call fcn.00431a85
add esp, 0xc
jmp 0x40b8fb
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
jmp 0x40b7ab
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x20]
test edx, edx
je 0x40b91d
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00409950
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00410041
add esp, 4
mov dword [ebp - 0x1c], 0
mov esi, esp
mov ecx, dword [ebp + 0xc]
push ecx
push 0
lea ecx, [ebp - 0x18]
call fcn.00409670
push eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
call dword [eax + 8]
cmp esi, esp
call fcn.004313a8
mov ecx, dword [ebp - 0x10]
call fcn.0040b9c0
and eax, 0xff
test eax, eax
je 0x40b982
mov byte [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004076a0
mov al, byte [ebp - 0x38]
jmp 0x40b998
mov byte [ebp - 0x3c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004076a0
mov al, byte [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x7c
cmp ebp, esp
call fcn.004313a8
mov esp, ebp
pop ebp
ret 8