Function at 0x5e2020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x206c
call fcn.00603dc0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
mov ecx, dword [edx]
mov dword [ebp - 0x3c], 0
mov ebx, dword [ecx + 0x14]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x30], ebx
nop word cs:[eax + eax]
nop
cmp dword [ebp - 0x18], ebx
mov esi, dword [ebp - 0x1c]
jae 0x5e20e7
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x24], edi
cmp ebx, edx
ja 0x5e2879
mov eax, dword [ebp - 0x18]
mov edi, dword [esi + 8]
mov esi, ebx
sub esi, eax
add edi, eax
cmp esi, 8
jae 0x5e25f0
xor edx, edx
test esi, esi
je 0x5e264c
mov eax, dword [ebp + 8]
nop dword [eax + eax]
cmp byte [edi + edx], 0xa
je 0x5e26c4
inc edx
cmp esi, edx
jne 0x5e20a0
xor ecx, ecx
mov edx, esi
test ecx, ecx
mov dword [ebp - 0x14], ecx
jne 0x5e260c
jmp 0x5e2660
mov ecx, edi
call fcn.005dc340
cmp al, 0x23
jne 0x5e273a
mov ebx, dword [ebp - 0x30]
cmp dword [ebp - 0x18], ebx
jb 0x5e2068
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], eax
push 0xfffffffffffffff6
call sub.KERNEL32.dll_GetStdHandle
test eax, eax
je 0x5e2120
mov edi, eax
cmp eax, 0xffffffff
jne 0x5e2140
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor ebx, ebx
test bl, bl
je 0x5e2524
jmp 0x5e252d
mov edi, 6
xor ebx, ebx
test bl, bl
je 0x5e2524
jmp 0x5e252d
mov dword [ebp - 0x20], ebx
lea ebx, [ebp - 0x2078]
mov dword [ebp - 0x2078], 0
push ebx
push edi
call sub.KERNEL32.dll_GetConsoleMode
test eax, eax
je 0x5e2187
mov eax, ebx
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x5e26d6
cmp ebx, 4
jae 0x5e21be
mov edi, 0x6d6130
mov ebx, 0x1402
test bl, bl
je 0x5e2524
jmp 0x5e252d
mov dword [ebp - 0x2078], 0
push 0
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push edi
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x5e2211
mov ebx, dword [ebp - 0x2078]
xor edx, edx
mov ecx, dword [ebp - 0x2c]
test edx, edx
mov edi, ecx
jne 0x5e2520
jmp 0x5e26e2
push 0x2000
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, ebx
mov ecx, 0xaaaaaaab
mul ecx
mov eax, 0x1000
mov ebx, edx
shr ebx, 1
cmp ebx, 0x1000
cmovae ebx, eax
movzx eax, word [esi + 0x18]
test ax, ax
je 0x5e223b
mov word [ebp - 0x2078], ax
cmp ebx, 1
mov eax, 2
mov word [esi + 0x18], 0
cmove ebx, eax
mov eax, 1
jmp 0x5e223d
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov dword [ebp - 0x2c], eax
call fcn.005dc340
xor edx, edx
cmp al, 0xb
setne dl
xor ebx, ebx
mov ecx, dword [ebp - 0x2c]
test edx, edx
mov edi, ecx
jne 0x5e2520
jmp 0x5e26e2
xor eax, eax
movaps xmm0, xmmword [0x6074d0]
lea esi, [ebp + eax*2 - 0x2078]
sub ebx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x78], xmm0
nop dword [eax + eax]
push 0
call sub.KERNEL32.dll_SetLastError
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push esi
push edi
call sub.KERNEL32.dll_ReadConsoleW
test eax, eax
je 0x5e25ad
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jne 0x5e229d
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e3
je 0x5e2260
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x5e25c6
lea eax, [ecx - 1]
cmp eax, ebx
jae 0x5e27de
cmp word [esi + ecx*2 - 2], 0x1a
cmovne eax, ecx
add eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov ecx, 0
lea edi, [ebp - 0x2078]
je 0x5e2501
lea ecx, [eax - 1]
cmp ecx, 0xfff
ja 0x5e27e9
movzx edx, word [ebp + eax*2 - 0x207a]
mov esi, edx
and esi, 0xfc00
cmp esi, 0xd800
mov esi, dword [ebp - 0x1c]
jne 0x5e2308
test ecx, ecx
mov eax, ecx
mov ecx, 0
mov word [esi + 0x18], dx
je 0x5e2501
lea eax, [ebp + eax*2 - 0x2078]
xor ecx, ecx
mov dword [ebp - 0x40], eax
jmp 0x5e2333
mov edx, 1
mov edi, dword [ebp - 0x10]
add ecx, edx
cmp edi, dword [ebp - 0x40]
je 0x5e2501
movzx eax, word [edi]
lea esi, [edi + 2]
mov dword [ebp - 0x10], edi
mov edx, eax
and edx, 0xf800
cmp edx, 0xd800
jne 0x5e23b0
cmp eax, 0xdbff
mov ebx, 0x1502
mov edx, 1
mov dword [ebp - 0x2c], 0x6d61b8
ja 0x5e25cd
cmp esi, dword [ebp - 0x40]
je 0x5e25cd
movzx edi, word [esi]
mov esi, edi
and esi, 0xfc00
cmp esi, 0xdc00
mov esi, dword [ebp - 0x1c]
jne 0x5e2512
add eax, 0x2800
add edi, 0x2400
mov ebx, dword [ebp - 0x20]
add dword [ebp - 0x10], 4
movzx edx, ax
movzx eax, di
shl edx, 0xa
or eax, edx
add eax, 0x10000
jmp 0x5e23b6
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x1c]
mov edx, ebx
sub edx, ecx
jb 0x5e27fd
cmp eax, 0x80
mov dword [ebp - 0x44], eax
jae 0x5e23f0
test edx, edx
mov dword [ebp - 0x28], 1
je 0x5e280e
mov edi, dword [ebp - 0x14]
test edx, edx
mov byte [edi + ecx], al
jne 0x5e2320
jmp 0x5e286b
cmp eax, 0x800
jae 0x5e2430
cmp edx, 1
mov dword [ebp - 0x28], 2
jbe 0x5e2810
mov edi, dword [ebp - 0x14]
mov ebx, eax
shr ebx, 6
or bl, 0xc0
mov byte [edi + ecx], bl
mov bh, al
and bh, 0x3f
or bh, 0x80
mov byte [edi + ecx + 1], bh
mov edi, 2
jmp 0x5e24c4
cmp eax, 0x10000
jae 0x5e2477
cmp edx, 2
mov dword [ebp - 0x28], 3
jbe 0x5e2810
mov edi, dword [ebp - 0x14]
mov ebx, eax
shr ebx, 0xc
or bl, 0xe0
mov byte [edi + ecx], bl
mov ebx, eax
shr ebx, 6
and bl, 0x3f
or bl, 0x80
mov byte [edi + ecx + 1], bl
mov bh, al
and bh, 0x3f
or bh, 0x80
mov byte [edi + ecx + 2], bh
mov edi, 3
jmp 0x5e24c4
cmp edx, 4
mov dword [ebp - 0x28], 4
jb 0x5e2810
mov edi, dword [ebp - 0x14]
mov ebx, eax
shr ebx, 0x12
or bl, 0xf0
mov byte [edi + ecx], bl
mov ebx, eax
shr ebx, 0xc
and bl, 0x3f
or bl, 0x80
mov byte [edi + ecx + 1], bl
mov ebx, eax
shr ebx, 6
and bl, 0x3f
or bl, 0x80
mov byte [edi + ecx + 2], bl
mov bh, al
and bh, 0x3f
or bh, 0x80
mov byte [edi + ecx + 3], bh
mov edi, 4
cmp edi, edx
ja 0x5e2870
mov ebx, dword [ebp - 0x20]
cmp eax, 0x80
mov edx, 1
jb 0x5e2325
mov edx, 2
cmp eax, 0x800
jb 0x5e2325
cmp eax, 0x10000
mov edx, 4
sbb edx, 0
jmp 0x5e2325
mov edx, dword [ebp - 0x24]
mov eax, 0xffffffff
mov ebx, ecx
and edx, eax
mov dword [ebp - 0x2c], edx
xor edx, edx
mov ecx, dword [ebp - 0x2c]
test edx, edx
mov edi, ecx
je 0x5e26e2
nop
test bl, bl
jne 0x5e252d
cmp edi, 6
je 0x5e26c0
mov eax, ebx
dec al
cmp al, 2
jae 0x5e2550
cmp bh, 0x23
jne 0x5e273a
cmp bl, 3
jne 0x5e20df
jmp 0x5e2562
test bl, bl
je 0x5e20d0
cmp byte [edi + 8], 0x23
jne 0x5e273a
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax]
add esp, 4
mov ecx, dword [edi + 4]
cmp dword [ecx + 4], 0
je 0x5e258e
mov eax, dword [edi]
cmp dword [ecx + 8], 9
jb 0x5e2580
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
push edi
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], ecx
jmp 0x5e20df
call sub.KERNEL32.dll_GetLastError
mov esi, dword [ebp - 0x1c]
mov edi, eax
xor ebx, ebx
test bl, bl
je 0x5e2524
jmp 0x5e252d
xor eax, eax
jmp 0x5e22b1
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
test edx, edx
mov edi, ecx
jne 0x5e2520
jmp 0x5e26e2
mov ecx, 0xa
mov edx, edi
push esi
call fcn.0045f4f0
add esp, 4
mov ecx, eax
mov eax, dword [ebp + 8]
test ecx, ecx
mov dword [ebp - 0x14], ecx
je 0x5e2660
cmp edx, 0xffffffff
je 0x5e2882
lea ecx, [edx + 1]
cmp edx, esi
mov dword [ebp - 0x20], ecx
jae 0x5e288e
mov ecx, eax
mov eax, dword [eax + 4]
mov esi, dword [ebp + 8]
mov ecx, dword [ecx + 8]
sub eax, ecx
mov dword [ebp - 0x10], ecx
cmp eax, edx
jbe 0x5e270b
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi]
mov esi, dword [ebp - 0x20]
add eax, ecx
push esi
push edi
push eax
mov edi, ecx
jmp 0x5e267e
mov eax, dword [ebp + 8]
xor ecx, ecx
test ecx, ecx
mov dword [ebp - 0x14], ecx
jne 0x5e260c
nop dword [eax + eax]
mov ecx, eax
mov eax, dword [eax + 4]
mov edx, dword [ecx + 8]
sub eax, edx
cmp eax, esi
jb 0x5e2723
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, edx
push esi
push edi
push eax
mov edi, edx
call sub.msvcrt.dll_memcpy
mov edx, edi
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
add edx, esi
mov edi, dword [ebp - 0x24]
add ecx, esi
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x1c]
cmp ecx, ebx
cmova ecx, ebx
add dword [ebp - 0x3c], esi
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x18], ecx
mov dword [eax + 0x10], ecx
jne 0x5e27bc
test esi, esi
jne 0x5e2060
jmp 0x5e27bc
xor ebx, ebx
jmp 0x5e26e4
mov ecx, 1
test ecx, ecx
mov dword [ebp - 0x14], ecx
jne 0x5e260c
jmp 0x5e2660
mov ecx, dword [ebp - 0x24]
mov eax, 0xffffffff
xor ebx, ebx
and ecx, eax
mov edi, ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], ebx
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x24], edi
cmp ebx, edx
jbe 0x5e2076
jmp 0x5e2879
mov edx, dword [ebp - 0x10]
mov ecx, esi
push dword [ebp - 0x20]
call fcn.005c1170
add esp, 4
mov ecx, dword [esi + 8]
jmp 0x5e263e
mov ecx, dword [ebp + 8]
push esi
call fcn.005c1170
mov eax, dword [ebp + 8]
add esp, 4
mov edx, dword [eax + 8]
jmp 0x5e2675
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 1
mov edx, dword [eax + 8]
mov eax, edi
mov edi, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x38]
mov eax, edx
mov dword [ebp - 0x10], edx
sub eax, esi
jb 0x5e28a2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
lea ecx, [ebp - 0x2078]
add edx, esi
push eax
call fcn.0045f760
add esp, 4
cmp dword [ebp - 0x2078], 0
je 0x5e2797
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], edi
mov dword [eax], 1
jmp 0x5e27ab
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
add esp, 0x206c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x3c]
mov edi, 0x1502
mov dword [ebp - 0x18], 0x6d4398
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
jmp 0x5e2751
mov ecx, eax
mov edx, ebx
push 0x6d6148
jmp 0x5e27f3
mov edx, 0x1000
push 0x6d6138
call fcn.0045a150
add esp, 4
ud2
mov edx, ebx
push 0x6d61c0
call fcn.0045a820
add esp, 4
ud2
xor edx, edx
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], edx
lea edx, [ebp - 0x48]
mov dword [ebp - 0x60], 0x6d3668
mov dword [ebp - 0x5c], 3
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 0x45a1b0
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x6c], 0x464660
mov dword [ebp - 0x68], edx
mov edx, 0x6d3680
mov dword [ebp - 0x64], 0x45a1b0
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x4c], 3
call fcn.0045a2c0
ud2
mov edi, 1
mov ecx, edi
push 0x6d361c
jmp 0x5e2898
mov ecx, ebx
push 0x6d43a0
jmp 0x5e2898
mov ecx, 0x6d4a18
call fcn.0045f6e0
ud2
mov ecx, dword [ebp - 0x20]
mov edx, esi
push 0x6d4a18
call fcn.0045ab50
add esp, 4
ud2
mov edx, dword [ebp - 0x10]
mov ecx, esi
push 0x6d48f8
call fcn.0045a820
add esp, 4
ud2