Function at 0x41c1f3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x425124]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x44], edx
push ebx
mov ebx, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], eax
push esi
push edi
lea edi, [ebp - 0x24]
mov dword [ebp - 0x40], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
jne 0x41c24b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x41c453
push 0x57
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
jmp 0x41c453
push 0xfffffffffffffff6
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x41c453
lea edx, [ebp - 0x3c]
mov ecx, esi
call fcn.0041bb44
xor edx, edx
test eax, eax
sete dl
mov dword [ebp - 0x2c], edx
test eax, eax
je 0x41c289
push 1
push esi
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_SetConsoleMode]
test eax, eax
je 0x41c453
mov edx, dword [ebp - 0x2c]
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x38]
push 0
push eax
push 1
cmp edx, 1
jne 0x41c2ef
lea eax, [ebp - 0x25]
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x41c453
cmp dword [ebp - 0x38], 0
je 0x41c408
mov al, byte [ebp - 0x25]
lea edx, [ebp - 0x18]
mov byte [ebp - 0x24], al
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0xa
push eax
call fcn.0041c10a
mov cx, word [ebp - 0x18]
mov word [ebp - 0x34], cx
jmp 0x41c306
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_ReadConsoleW]
test eax, eax
je 0x41c449
mov cx, word [ebp - 0x34]
cmp cx, 0xd
je 0x41c408
push 8
pop eax
cmp cx, ax
jne 0x41c3bf
mov edx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41c29f
push eax
push 0x402290
lea eax, [ebp - 0x18]
push 0xa
push eax
call fcn.0041c78c
add esp, 0x10
lea eax, [ebp - 0x30]
push 0
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
push eax
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_WriteConsoleW]
push 0
push 0x402290
lea eax, [ebp - 0x18]
push 0xa
push eax
call fcn.0041c78c
add esp, 0x10
lea eax, [ebp - 0x30]
push 0
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
push eax
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_WriteConsoleW]
push 8
push 0x402290
lea eax, [ebp - 0x18]
push 0xa
push eax
call fcn.0041c78c
add esp, 0x10
lea eax, [ebp - 0x30]
push 0
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
push eax
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_WriteConsoleW]
dec ebx
mov edx, dword [ebp - 0x2c]
jmp 0x41c29f
mov eax, dword [ebp - 0x44]
dec eax
cmp ebx, eax
jne 0x41c3d6
push 0
lea eax, [ebp - 0x30]
push eax
push 1
push 0x402298
jmp 0x41c3f7
mov edx, dword [ebp - 0x2c]
push 0xa
pop eax
cmp cx, ax
je 0x41c29f
push 0
lea eax, [ebp - 0x30]
mov word [edi + ebx*2], cx
push eax
push 1
inc ebx
push 0x40229c
push 0xfffffffffffffff5
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
push eax
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_WriteConsoleW]
jmp 0x41c3b7
push dword [ebp - 0x3c]
xor eax, eax
push esi
mov word [edi + ebx*2], ax
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_SetConsoleMode]
push 0xa
pop eax
push eax
mov edx, 0x40334c
lea ecx, [ebp - 0x18]
call fcn.0041bc68
push 0
lea ecx, [ebp - 0x30]
push ecx
push 2
lea ecx, [ebp - 0x18]
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
push eax
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_WriteConsoleW]
xor eax, eax
inc eax
jmp 0x41c455
push dword [ebp - 0x3c]
push esi
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_SetConsoleMode]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004201e0
leave
ret