Function at 0x40dc30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
push 0x43814a
push dword [ebp + 8]
call fcn.0041d6e6
add esp, 8
test eax, eax
je 0x40deba
mov esi, eax
push 2
push 0
push eax
call fcn.0041a26e
add esp, 0xc
mov ebx, 6
test eax, eax
jne 0x40decc
push esi
call fcn.0041af45
add esp, 4
test eax, eax
jle 0x40decc
mov edi, eax
inc eax
push eax
call fcn.00412415
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 0
push esi
call fcn.0041a26e
add esp, 0xc
test eax, eax
jne 0x40dec1
push esi
push edi
push 1
push dword [ebp - 0x10]
call fcn.0041f00f
add esp, 0x10
cmp eax, edi
jne 0x40dec1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov esi, eax
mov byte [eax + edi], 0
lea edi, [esi + 1]
lea ecx, [esi + 2]
lea eax, [esi + 3]
mov ebx, esi
jmp 0x40dce4
inc ebx
inc edi
inc ecx
inc eax
movzx edx, byte [ebx]
cmp dl, 0xa
je 0x40dce0
cmp dl, 0xd
je 0x40dce0
test dl, dl
mov esi, edi
mov dh, dl
je 0x40dedf
nop
nop
nop
cmp dh, 0xd
je 0x40dd1d
cmp dh, 0xa
je 0x40dd1d
mov dh, byte [esi]
inc esi
test dh, dh
jne 0x40dd00
xor esi, esi
cmp dl, 0x23
jne 0x40dd2c
jmp 0x40de28
mov byte [esi - 1], 0
mov dl, byte [ebx]
cmp dl, 0x23
je 0x40de28
cmp dl, 0x3b
je 0x40de28
jmp 0x40dd46
movzx edx, byte [edi]
inc edi
inc ecx
inc eax
cmp dl, 0x1f
jg 0x40dd52
cmp dl, 9
je 0x40dd40
jmp 0x40dd8d
cmp dl, 0x20
je 0x40dd40
cmp dl, 0x5b
jne 0x40dd95
mov edx, edi
jmp 0x40dd63
inc edx
inc ecx
inc eax
movzx ebx, byte [edx]
cmp bl, 0x5d
je 0x40dd60
test bl, bl
jne 0x40dd7b
mov dword [ebp - 0x14], 0
jmp 0x40de28
cmp bl, 0x5d
je 0x40ddd1
movzx ebx, byte [edx + 1]
inc edx
inc ecx
inc eax
test bl, bl
jne 0x40dd7b
jmp 0x40dde9
test dl, dl
je 0x40de28
test byte [ebp - 0x14], 1
je 0x40de28
mov ecx, dword [ebp + 0xc]
lea eax, [edi - 1]
mov dword [ebp - 0x24], eax
cmp dl, 0x3d
jne 0x40ddb8
movzx edx, byte [eax + 1]
inc eax
inc edi
cmp dl, 0x3d
je 0x40ddad
test dl, dl
je 0x40de28
cmp dl, 0x3d
je 0x40de38
movzx edx, byte [edi]
inc edi
test dl, dl
jne 0x40ddbc
xor edi, edi
test ecx, ecx
jne 0x40de40
jmp 0x40de28
mov byte [edx], 0
jmp 0x40ddd8
inc ecx
inc eax
movzx edx, byte [ecx]
cmp dl, 9
je 0x40ddd6
cmp dl, 0x20
je 0x40ddd6
test dl, dl
jne 0x40ddf3
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40de12
push eax
jmp 0x40de17
cmp dl, 0x20
je 0x40de88
cmp dl, 9
je 0x40de88
movzx edx, byte [eax]
inc eax
test dl, dl
jne 0x40ddf3
jmp 0x40dd6f
push str.Strings
push edi
call fcn.0041f760
add esp, 8
test eax, eax
sete al
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
test esi, esi
jne 0x40dcd3
jmp 0x40dee2
mov byte [edi - 1], 0
test ecx, ecx
je 0x40de28
cmp byte [ecx], 0
je 0x40de28
mov eax, dword [ebp + 0x14]
mov ebx, ecx
mov dword [ebp - 0x18], 0
mov edx, eax
mov dword [ebp - 0x1c], edx
push ebx
push dword [ebp - 0x24]
call fcn.0041f760
add esp, 8
test eax, eax
je 0x40de91
push ebx
call fcn.0041f7f0
add esp, 4
mov edx, dword [ebp - 0x1c]
inc dword [ebp - 0x18]
add edx, 0x258
cmp byte [ebx + eax + 1], 0
lea ebx, [ebx + eax + 1]
jne 0x40de53
jmp 0x40de28
mov byte [eax - 1], 0
jmp 0x40dd6f
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x10]
jae 0x40de28
push 0x257
push edi
mov edi, dword [ebp - 0x1c]
push edi
call fcn.0041f900
add esp, 0xc
inc dword [ebp - 0x20]
mov byte [edi + 0x257], 0
jmp 0x40de28
mov ebx, 6
jmp 0x40ded5
push dword [ebp - 0x10]
call fcn.0041241e
add esp, 4
push esi
call fcn.0041ea14
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]
sub esp, 4
mov dword [esp], ecx
call fcn.0041241e
add esp, 4
mov esi, dword [ebp - 0x28]
jmp 0x40decc