Function at 0x40bbc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
push 0x42defc
push dword [ebp + 8]
call fcn.00415354
add esp, 8
test eax, eax
je 0x40be40
mov esi, eax
push 2
push 0
push eax
call fcn.00415ca1
add esp, 0xc
mov ebx, 6
test eax, eax
jne 0x40be52
push esi
call fcn.00415f7e
add esp, 4
test eax, eax
jle 0x40be52
mov edi, eax
inc eax
push eax
call fcn.0040da41
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 0
push esi
call fcn.00415ca1
add esp, 0xc
test eax, eax
jne 0x40be47
push esi
push edi
push 1
push dword [ebp - 0x10]
call fcn.00415a8e
add esp, 0x10
cmp eax, edi
jne 0x40be47
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov esi, ecx
mov byte [ecx + edi], 0
lea edi, [esi + 1]
lea ecx, [esi + 2]
lea eax, [esi + 3]
mov ebx, esi
jmp 0x40bc74
inc ebx
inc edi
inc ecx
inc eax
movzx edx, byte [ebx]
cmp dl, 0xa
je 0x40bc70
cmp dl, 0xd
je 0x40bc70
test dl, dl
mov esi, edi
mov dh, dl
je 0x40be65
nop dword [eax]
cmp dh, 0xd
je 0x40bcad
cmp dh, 0xa
je 0x40bcad
mov dh, byte [esi]
inc esi
test dh, dh
jne 0x40bc90
xor esi, esi
cmp dl, 0x23
jne 0x40bcbc
jmp 0x40bdb1
mov byte [esi - 1], 0
mov dl, byte [ebx]
cmp dl, 0x23
je 0x40bdb1
cmp dl, 0x3b
je 0x40bdb1
jmp 0x40bcd2
cmp dl, 0x20
jne 0x40bce6
movzx edx, byte [edi]
inc edi
inc ecx
inc eax
cmp dl, 0x1f
jg 0x40bcc7
cmp dl, 9
je 0x40bccc
test dl, dl
je 0x40bdb1
jmp 0x40bcfa
cmp dl, 0x5b
jne 0x40bcfa
mov edx, edi
movzx ebx, byte [edx]
cmp bl, 0x5d
jne 0x40bd42
inc edx
inc ecx
inc eax
jmp 0x40bced
test byte [ebp - 0x14], 1
je 0x40bdb1
mov ebx, dword [ebp + 0xc]
lea eax, [edi - 1]
mov dword [ebp - 0x24], eax
cmp dl, 0x3d
jne 0x40bd1d
movzx edx, byte [eax + 1]
inc eax
inc edi
cmp dl, 0x3d
je 0x40bd12
test dl, dl
je 0x40bdb1
cmp dl, 0x3d
je 0x40bdc1
movzx edx, byte [edi]
inc edi
test dl, dl
jne 0x40bd25
xor edi, edi
test ebx, ebx
jne 0x40bdc9
jmp 0x40bdb1
test bl, bl
jne 0x40bd4f
mov dword [ebp - 0x14], 0
jmp 0x40bdb1
cmp bl, 0x5d
je 0x40bd61
movzx ebx, byte [edx + 1]
inc edx
inc ecx
inc eax
test bl, bl
jne 0x40bd4f
jmp 0x40bd79
mov byte [edx], 0
jmp 0x40bd68
inc ecx
inc eax
movzx edx, byte [ecx]
cmp dl, 9
je 0x40bd66
cmp dl, 0x20
je 0x40bd66
test dl, dl
jne 0x40bd83
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40bd9b
push eax
jmp 0x40bda0
cmp dl, 0x20
je 0x40be0e
cmp dl, 9
je 0x40be0e
movzx edx, byte [eax]
inc eax
test dl, dl
jne 0x40bd83
jmp 0x40bd46
push str.Strings
push edi
call fcn.00416860
add esp, 8
test eax, eax
sete al
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
test esi, esi
jne 0x40bc63
jmp 0x40be68
mov byte [edi - 1], 0
test ebx, ebx
je 0x40bdb1
cmp byte [ebx], 0
je 0x40bdb1
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
push ebx
push dword [ebp - 0x24]
call fcn.00416860
add esp, 8
test eax, eax
je 0x40be17
push ebx
call fcn.004168f0
add esp, 4
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
inc edx
add ecx, 0x258
cmp byte [eax + ebx + 1], 0
lea ebx, [eax + ebx + 1]
jne 0x40bdd5
jmp 0x40bdb1
mov byte [eax - 1], 0
jmp 0x40bd46
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jae 0x40bdb1
push 0x257
push edi
mov edi, dword [ebp - 0x18]
push edi
call fcn.00416980
add esp, 0xc
inc dword [ebp - 0x20]
mov byte [edi + 0x257], 0
jmp 0x40bdb1
mov ebx, 6
jmp 0x40be5b
push dword [ebp - 0x10]
call fcn.0040da4a
add esp, 4
push esi
call fcn.0041543f
add esp, 4
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
xor eax, eax
cmp edx, dword [ebp + 0x10]
setne al
lea ebx, [eax + eax*4]
push ecx
call fcn.0040da4a
add esp, 4
mov esi, dword [ebp - 0x28]
jmp 0x40be52