Function at 0x418c90
Capabilities:
Manipulate console buffer
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
test byte [esp + 0xc8], 8
mov esi, dword [esp + 0xc0]
mov ebx, dword [esp + 0xc4]
jne 0x418cc1
test ebx, ebx
jne 0x418cc1
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004158f0
movzx eax, word [0x43bdc4]
cmp word [0x43bdc0], ax
je 0x418f50
movzx eax, word [0x43bdc6]
cmp word [0x43bdc2], ax
je 0x418f50
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.00413690
lea eax, [esp + 0x34]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x30]
mov dword [esp + 8], eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], eax
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.00417970
lea eax, [esp + 0x58]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov dword [esp], 0
mov dword [esp + 0x80], 0x418aa0
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x88], edx
add edx, dword [esp + 0x30]
mov dword [esp + 0x84], 0x4189e0
add ecx, eax
add eax, dword [esp + 0x3c]
sub ecx, 1
sub edx, 1
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
sub eax, 1
mov dword [esp + 0x94], eax
call fcn.004163e0
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x28]
mov ecx, 1
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x58], eax
add eax, dword [esp + 0x30]
mov dword [esp + 0x5c], edx
sub eax, 1
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
add eax, edx
sub eax, 1
cmp edx, dword [esp + 0x8c]
mov dword [esp + 0x64], eax
je 0x418fe0
lea ebp, [esp + 0x42]
mov dword [esp], 0
mov dword [esp + 0x78], ecx
call fcn.004163e0
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
sub esp, 8
test eax, eax
je 0x418fa0
movsx eax, word [esp + 0x46]
mov dword [esp + 0x98], eax
movsx eax, word [esp + 0x48]
mov dword [esp + 0x9c], eax
movsx eax, word [esp + 0x42]
mov dword [esp + 0x68], eax
movsx eax, word [esp + 0x44]
mov dword [esp + 0x6c], eax
movzx eax, word [esp + 0x4a]
mov word [esp + 0x70], ax
mov ecx, dword [0x43bdcc]
lea edi, [esp + 0x7c]
test ecx, ecx
jne 0x419030
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004190e0
mov edx, dword [esp + 0x98]
mov ebx, dword [esp + 0x88]
cmp edx, ebx
je 0x418ff1
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x9c]
cmp ecx, 0xffffffff
je 0x418ebc
cmp ecx, eax
jge 0x418ebc
sub eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 8], eax
call dword [esp + pe_nt_image_headers32]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
shl eax, 0x10
movzx edx, dx
or eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
sub esp, 8
mov eax, dword [esp + 0x8c]
cmp eax, dword [esp + 0x2c]
je 0x418f32
mov edx, dword [esp + 0x78]
test edx, edx
jne 0x418f32
mov word [esp + 0x44], ax
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x88]
mov dword [esp + 8], ebp
mov dword [esp + 4], 1
mov word [esp + 0x46], ax
mov eax, dword [esp + 0x94]
mov word [esp + 0x42], dx
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
sub esp, 0xc
call fcn.004177f0
call fcn.00415910
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
add ebx, ebx
lea edi, [esp + 0x7c]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
jne 0x418f6b
jmp 0x418f37
mov eax, dword [esp + 0x7c]
sub ebx, eax
lea esi, [esi + eax*2]
je 0x418f37
mov dword [esp], 0
call fcn.004163e0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call ebp
sub esp, 0x14
cmp eax, 1
je 0x418f60
call fcn.00415910
jmp 0x418f3c
mov eax, dword [esp + 0x88]
mov edi, 7
mov dword [esp + 0x68], 0x50
mov dword [esp + 0x6c], 0x19
mov word [esp + 0x70], di
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x9c], eax
jmp 0x418e29
xor ecx, ecx
cmp eax, dword [esp + 0x94]
setne cl
jmp 0x418dc9
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x9c]
lea esi, [ecx + 1]
cmp eax, esi
jne 0x418e77
mov edx, dword [esp + 0x90]
mov dword [0x43bdcc], 1
mov eax, ecx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x98], edx
jmp 0x418ebc
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x94]
lea edi, [esp + 0x7c]
mov ecx, dword [esp + 0x88]
mov dword [0x43bdcc], 0
add eax, 1
cmp edx, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], ecx
jge 0x418e3b
cmp edx, 0xffffffff
je 0x418e3b
sub eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 4], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 8], eax
call dword [esp + pe_nt_image_headers32]
jmp 0x418e3b