Function at 0x412d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4655bc
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.0042aad0
mov eax, dword [0x485098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1020], ebx
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x1018]
mov esi, dword [ebp + 8]
push 0x7d0
push 0
push eax
mov dword [ebp - 0x1024], edi
call fcn.004423c0
add esp, 0xc
test esi, esi
jne 0x412def
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1024], esp
push 0x19
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], 0xf
push str.Parametro_path_incorreto_
mov byte [ecx], 0
call fcn.00405270
mov dword [ebp - 4], esi
sub esp, 0x18
mov ecx, esp
push 0x1a
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.TEF_DISC::carregaDoArquivo
mov byte [ecx], 0
call fcn.00405270
mov dword [ebp - 4], 0xffffffff
call fcn.00421e60
add esp, 0x30
xor al, al
jmp 0x413137
test edi, edi
jne 0x412e20
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1024], esp
push 0x1d
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], 0xf
push str.Parametro_filename_incorreto_
mov byte [ecx], 0
call fcn.00405270
mov dword [ebp - 4], 1
jmp 0x412db7
cmp dword [ebx], 0
je 0x412e3a
mov ecx, dword [ebx]
push ecx
mov eax, dword [ecx + 0x70]
mov dword [ebx], eax
call fcn.0044576d
add esp, 4
cmp dword [ebx], 0
jne 0x412e25
push 0x7d0
lea eax, [ebp - 0x848]
push 0
push eax
call fcn.004423c0
add esp, 0xc
mov edx, esi
mov al, byte [esi]
inc esi
test al, al
jne 0x412e52
lea edi, [ebp - 0x848]
sub esi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412e62
mov ecx, esi
mov dword [ebp - 0x101c], esi
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x101c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x848]
dec edi
nop dword [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x412e90
mov ax, word [0x4693d4]
mov edx, dword [ebp - 0x1024]
mov esi, edx
mov word [edi], ax
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x412eb0
lea edi, [ebp - 0x848]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412ec0
mov ecx, edx
lea eax, [ebp - 0x848]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x4697b0
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004490d0
mov edi, eax
add esp, 8
test edi, edi
jne 0x412f54
call fcn.0044be7c
push dword [eax]
lea eax, [ebp - 0x1018]
push str.Erro_lendo_arquivo__ERRNO__d_
push eax
call fcn.00407fb0
sub esp, 0xc
lea ecx, [ebp - 0x1018]
mov edx, esp
mov dword [ebp - 0x1024], esp
lea esi, [ecx + 1]
mov dword [edx + 0x10], edi
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412f30
sub ecx, esi
lea eax, [ebp - 0x1018]
push ecx
push eax
mov ecx, edx
call fcn.00405270
mov dword [ebp - 4], 2
jmp 0x412db7
push 2
push 0
push edi
call fcn.004493b4
add esp, 0xc
push edi
test eax, eax
je 0x412f9f
call fcn.00448bb9
sub esp, 0x14
mov ecx, esp
mov dword [ebp - 0x1024], esp
push 0xd
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.Arquivo_vazio
mov byte [ecx], 0
call fcn.00405270
mov dword [ebp - 4], 3
jmp 0x412db7
call fcn.00449a50
push 0
push 0
push edi
mov ebx, eax
call fcn.004493b4
add esp, 0x10
test eax, eax
je 0x412fc7
push edi
call fcn.00448bb9
add esp, 4
xor al, al
jmp 0x413137
lea eax, [ebx + 1]
push eax
call fcn.0044578a
mov esi, eax
add esp, 4
mov dword [ebp - 0x101c], esi
test esi, esi
je 0x412fb7
lea eax, [ebx + 1]
push eax
push 0
push esi
call fcn.004423c0
push edi
push ebx
push 1
push esi
call fcn.0044b46f
add esp, 0x1c
cmp eax, ebx
je 0x413012
push esi
call fcn.0044576d
push edi
call fcn.00448bb9
add esp, 8
xor al, al
jmp 0x413137
push edi
call fcn.00448bb9
add esp, 4
xor edi, edi
test ebx, ebx
je 0x41312c
push 0x65
lea eax, [ebp - 0x78]
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x1028], xmm0
call fcn.004423c0
add esp, 0xc
cmp ebx, 7
jb 0x413159
mov ecx, dword [ebp - 0x101c]
cmp byte [edi + ecx + 3], 0x2d
jne 0x413159
mov eax, dword [edi + ecx]
sub ebx, 7
mov dword [ebp - 0x1028], eax
mov ax, word [edi + ecx + 4]
mov word [ebp - 0x1024], ax
mov al, byte [edi + ecx + 6]
mov byte [ebp - 0x1022], al
cmp ebx, 3
jb 0x413159
cmp byte [edi + ecx + 7], 0x20
jne 0x413159
cmp byte [edi + ecx + 8], 0x3d
jne 0x413159
cmp byte [edi + ecx + 9], 0x20
jne 0x413159
add edi, 0xa
sub ebx, 3
xor esi, esi
nop
mov eax, ebx
sub eax, esi
cmp eax, 2
jb 0x4130cc
lea eax, [edi + ecx]
cmp byte [eax + esi], 0xd
jne 0x4130c9
cmp byte [eax + esi + 1], 0xa
je 0x4130ce
inc esi
jmp 0x4130b0
mov esi, ebx
cmp esi, 0x64
ja 0x413159
lea eax, [edi + ecx]
push esi
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004418c0
mov eax, ebx
lea ecx, [esi + edi]
sub eax, esi
lea edi, [ecx + 2]
add esp, 0xc
cmp eax, 2
cmovb edi, ecx
lea ebx, [eax - 2]
cmovb ebx, eax
test esi, esi
je 0x41311e
mov esi, dword [ebp - 0x1020]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x1028]
mov ecx, esi
push eax
call fcn.00412920
test al, al
je 0x413155
test ebx, ebx
jne 0x413025
mov esi, dword [ebp - 0x101c]
push esi
call fcn.0044576d
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042aa99
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
jmp 0x41315f
mov ecx, dword [ebp - 0x1020]
call fcn.004128c0
mov esi, dword [ebp - 0x101c]
push esi
call fcn.0044576d
add esp, 4
xor al, al
jmp 0x413137