Function at 0x401340
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x30]
xor ebx, ebx
push esi
mov dword [esp + 0x14], ebp
cmp eax, ebx
je 0x401364
push eax
call fcn.00405824
add esp, 4
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
mov eax, dword [ebp + 0x20]
push 0x41c228
mov dword [ebp + 0xc0], ebx
mov dword [ebp + 0x12c], ebx
push eax
cmp dword [ebp + 0x2c], ebx
je 0x401385
call fcn.00405fc8
jmp 0x40138a
call fcn.00401090
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x40139c
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44
ret
push edi
cmp dword [ebp + 0x2c], ebx
je 0x4013c0
push 2
push ebx
push esi
call fcn.00405e7f
push esi
call fcn.00405d87
push ebx
push ebx
push esi
mov edi, eax
call fcn.00405e7f
add esp, 0x1c
jmp 0x40140c
mov ecx, dword [0x424724]
mov eax, dword [ecx]
mov edx, dword [eax + 0x70]
call edx
mov edx, dword [eax]
push 2
push ebx
mov ecx, eax
mov eax, dword [edx + 0x50]
push esi
call eax
mov ecx, dword [0x424724]
mov edx, dword [ecx]
mov eax, dword [edx + 0x70]
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x54]
push esi
call eax
mov ecx, dword [0x424724]
mov edx, dword [ecx]
mov edi, eax
mov eax, dword [edx + 0x70]
call eax
mov edx, dword [eax]
push ebx
push ebx
mov ecx, eax
mov eax, dword [edx + 0x50]
push esi
call eax
lea eax, [edi + 2]
push eax
mov dword [esp + 0x28], eax
call fcn.00404e5f
add esp, 4
cmp dword [ebp + 0x2c], 0
mov ebx, eax
mov dword [esp + 0x1c], ebx
je 0x40145c
push esi
push edi
push 1
push ebx
call fcn.00405bcd
add esp, 0x10
push esi
cmp eax, edi
je 0x401452
call fcn.004058b1
push ebx
call fcn.00405824
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44
ret
call fcn.004058b1
add esp, 4
jmp 0x4014af
mov ecx, dword [0x424724]
mov edx, dword [ecx]
mov eax, dword [edx + 0x70]
call eax
mov edx, dword [eax]
push edi
push ebx
mov ecx, eax
mov eax, dword [edx + 0x3c]
push esi
call eax
mov ecx, dword [0x424724]
mov edx, dword [ecx]
cmp eax, edi
mov eax, dword [edx + 0x70]
je 0x4014a3
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x38]
push esi
call eax
push ebx
call fcn.00405824
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44
ret
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x38]
push esi
call eax
mov byte [ebx + edi], 0xa
mov byte [ebx + edi + 1], 0
xor edi, edi
xor ebp, ebp
cmp byte [ebx], 0
mov dword [esp + 0x14], edi
mov byte [esp + 0x13], 0
mov esi, ebx
mov ecx, ebx
mov dword [esp + 0x20], ebx
je 0x401757
mov al, byte [ecx]
cmp al, 0xd
je 0x4015ac
cmp al, 0xa
je 0x4015ac
cmp al, 0x5b
jne 0x401504
test edi, edi
jne 0x4015a2
mov byte [esp + 0x13], 1
mov byte [ecx], 0
lea esi, [ecx + 1]
jmp 0x401749
cmp al, 0x5d
jne 0x401582
cmp byte [esp + 0x13], 0
je 0x40159c
mov edi, dword [esp + 0x18]
mov byte [ecx], 0
xor eax, eax
lea ecx, [esp + 0x34]
add edi, 0x38
push ecx
mov ecx, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.00401140
mov edx, dword [edi + 0x88]
mov eax, dword [edi + 0x80]
shl edx, 4
mov ecx, esi
lea ebp, [edx + eax - 0x10]
sub ecx, ebx
push esi
mov dword [ebp], ecx
call section..text
mov edx, dword [esp + 0x1c]
mov dword [ebp + 4], eax
mov eax, dword [edx + 0x12c]
add esp, 4
mov dword [ebp + 8], eax
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x13], al
mov edi, eax
jmp 0x401745
cmp al, 0x20
je 0x40158a
cmp al, 9
jne 0x40159c
test edi, edi
je 0x401749
inc edi
mov dword [esp + 0x14], edi
jmp 0x401749
test edi, edi
jne 0x4015a2
mov esi, ecx
inc edi
mov dword [esp + 0x14], edi
jmp 0x401749
xor eax, eax
mov byte [ecx], 0
mov byte [esp + 0x13], 0
cmp edi, eax
je 0x401749
mov dl, byte [esi]
cmp dl, 0x3b
jne 0x4015d0
mov dword [esp + 0x14], eax
mov edi, eax
jmp 0x401749
cmp edi, 2
jb 0x4015ea
cmp dl, 0x2f
jne 0x4015ea
cmp byte [esi + 1], dl
jne 0x4015ea
mov dword [esp + 0x14], eax
mov edi, eax
jmp 0x401749
cmp ebp, eax
jne 0x401650
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x44]
lea edi, [ebx + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call fcn.00401140
mov edx, dword [edi + 0x88]
mov eax, dword [edi + 0x80]
mov ecx, dword [esp + 0x24]
shl edx, 4
lea ebp, [edx + eax - 0x10]
dec ecx
push 0x41c227
mov dword [ebp], ecx
call section..text
mov edi, dword [esp + 0x18]
mov dword [ebp + 4], eax
mov edx, dword [ebx + 0x12c]
add esp, 4
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], 0
lea eax, [esi + edi - 1]
cmp eax, esi
jb 0x40166c
mov cl, byte [eax]
cmp cl, 0x20
je 0x401664
cmp cl, 9
jne 0x40166c
mov byte [eax], 0
dec eax
cmp eax, esi
jae 0x401658
push 0x3d
push esi
call fcn.00405080
mov edi, dword [esp + 0x20]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
add esp, 8
lea eax, [esp + 0x28]
add edi, 0xc4
push eax
mov ecx, edi
call fcn.004011f0
mov eax, dword [edi + 0x68]
mov edx, dword [edi + 0x60]
lea ecx, [eax + eax*2]
lea edi, [edx + ecx*4 - 0xc]
mov dword [esp + 0x14], edi
test ebx, ebx
jne 0x4016d0
mov eax, esi
sub eax, dword [esp + 0x1c]
push esi
mov dword [edi], eax
call section..text
mov ecx, dword [esp + 0x28]
add esp, 4
dec ecx
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
jmp 0x401732
lea eax, [ebx - 1]
mov byte [ebx], 0
cmp eax, esi
jb 0x4016f4
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x4016ec
cmp cl, 9
jne 0x4016f4
mov byte [eax], 0
dec eax
cmp eax, esi
jae 0x4016e0
cmp byte [ebx + 1], 0
lea edi, [ebx + 1]
je 0x401713
lea ecx, [ecx]
mov al, byte [edi]
cmp al, 0x20
je 0x40170a
cmp al, 9
jne 0x401713
mov byte [edi], 0
inc edi
cmp byte [edi], 0
jne 0x401700
mov ebx, dword [esp + 0x14]
mov edx, esi
sub edx, dword [esp + 0x1c]
push esi
mov dword [ebx], edx
call section..text
add esp, 4
sub edi, dword [esp + 0x1c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
inc dword [ebp + 0xc]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc ecx
cmp byte [ecx], 0
mov dword [esp + 0x20], ecx
jne 0x4014d6
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword [eax + 0x30], ebx
pop ebp
mov dword [eax + 0x34], ecx
mov al, 1
pop ebx
add esp, 0x44
ret