Function at 0x4011f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xe8
mov eax, esp
mov dword [eax], 0xf1bb16
mov eax, dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
call eax
sub esp, 4
lea ecx, [esp + 0xbc]
mov dword [esp + 0x94], 0xa4d
mov edx, esp
lea esi, [esp + 0x94]
mov dword [edx + 4], esi
mov dword [edx], 0x78405
mov edx, dword [sym.imp.KERNEL32.dll_GetCommMask]
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], ecx
call edx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x6b6
mov dword [ecx], 0x8e4b24
mov ecx, dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x88], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 8], 0xcbce6
mov dword [ecx + 4], 0x60dbd9
mov dword [ecx], 0x1407f7
mov ecx, dword [sym.imp.GDI32.dll_FillRgn]
mov dword [esp + 0x84], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0xeefab8
mov ecx, dword [sym.imp.USER32.dll_GetMenuContextHelpId]
mov dword [esp + 0x80], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx + 0x14], 0xb04
mov dword [ecx + 0x10], str.THR___Iu_5JMb01
mov dword [ecx + 0xc], 0xb04
mov dword [ecx + 8], str.4_I2vqeriUahO
mov dword [ecx + 4], 0x11e
mov dword [ecx], 0xfe3
mov ecx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x7c], eax
call ecx
sub esp, 0x18
xor ecx, ecx
lea edx, [esp + 0xc8]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], ecx
jmp 0x401455
mov eax, esp
mov dword [eax + 4], 0xa7bd67
mov dword [eax], 0x1ff
mov eax, dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
call eax
sub esp, 8
mov ecx, dword [esp + 0x6c]
sub ecx, 9
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ecx
je 0x401380
jmp 0x40132f
mov eax, dword [esp + 0x6c]
sub eax, 0x38
mov dword [esp + 0x60], eax
je 0x401560
jmp 0x401342
mov eax, dword [esp + 0x6c]
add eax, 1
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
cmp eax, 0xf6
mov dword [esp + 0x70], eax
je 0x4015d3
jmp 0x401455
mov eax, dword [esp + 0x58]
add eax, 1
cmp eax, 0x7a
mov dword [esp + 0x54], eax
je 0x401303
jmp 0x4014ad
mov eax, esp
mov dword [eax + 4], 0xb30
mov dword [eax], 0xb30
mov eax, dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
call eax
sub esp, 8
lea ecx, [esp + 0xa0]
mov dword [esp + 0x9c], 0x4b0
mov dword [esp + 0xb8], 0x9d9d2
mov dword [esp + 0x98], ecx
mov ecx, esp
lea edx, [esp + 0x98]
mov dword [ecx + 0xc], edx
lea edx, [esp + 0xb8]
mov dword [ecx + 8], edx
lea edx, [esp + 0x9c]
mov dword [ecx + 4], edx
mov dword [ecx + 0x10], 0x3ee
mov dword [ecx], 0xef5c8c
mov ecx, dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov dword [esp + 0x50], eax
call ecx
sub esp, 0x14
mov word [esp + 0xc6], 0x15
mov dword [esp + 0xc0], 0xbdd
mov ecx, esp
lea edx, [esp + 0xc0]
mov dword [ecx + 0x10], edx
mov edx, dword [esp + 0x8c]
mov esi, dword [edx]
mov dword [ecx + 0xc], esi
lea esi, [esp + 0xc6]
mov dword [ecx + 4], esi
mov dword [ecx + 8], 0xb33
mov dword [ecx], 0xe0863a
mov ecx, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
mov dword [esp + 0x4c], eax
call ecx
sub esp, 0x14
mov dword [esp + 0x48], eax
jmp 0x401342
mov eax, dword [esp + 0x70]
mov ecx, esp
mov dword [ecx + 0x10], 0xcc4
mov dword [ecx + 0xc], 0xc65
mov dword [ecx + 8], 0xea3
mov dword [ecx + 4], 0x862
mov dword [ecx], 0x3f7476
mov ecx, dword [sym.imp.GDI32.dll_IntersectClipRect]
mov dword [esp + 0x6c], eax
call ecx
sub esp, 0x14
mov ecx, esp
mov dword [ecx], 0x600e90
mov ecx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x44], eax
call ecx
sub esp, 4
xor ecx, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x54]
mov ecx, 0xf0f0f0f1
mov dword [esp + 0x58], eax
mul ecx
shr edx, 4
imul eax, edx, 0x11
mov ecx, dword [esp + 0x58]
sub ecx, eax
mov eax, ecx
sub eax, 7
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
je 0x401509
jmp 0x4014d9
mov eax, dword [esp + 0x3c]
sub eax, 3
mov dword [esp + 0x34], eax
jne 0x401367
jmp 0x4014ec
mov eax, esp
mov dword [eax + 4], 0xf6a
mov dword [eax], 0xd29fcf
mov eax, dword [sym.imp.GDI32.dll_SetDCPenColor]
call eax
sub esp, 8
mov dword [esp + 0x30], eax
xor eax, eax
mov ecx, 0x1c
mov edx, dword [esp + 0x74]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x1c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
call sub.msvcrt.dll_memset
mov eax, esp
lea ecx, [esp + 0xc8]
mov dword [eax + 8], ecx
mov dword [eax + 4], 0xc51
mov dword [eax], 0xa703d1
mov eax, dword [sym.imp.USER32.dll_GetScrollInfo]
call eax
sub esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x401367
mov eax, esp
mov dword [eax], 0xbda0b1
mov eax, dword [sym.imp.KERNEL32.dll_UnregisterWait]
call eax
sub esp, 4
mov ecx, esp
mov dword [ecx + 4], 0x8fe
mov dword [ecx], 0xfec058
mov ecx, dword [sym.imp.GDI32.dll_SetDCPenColor]
mov dword [esp + 0x20], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 0x14], 0xff7
mov dword [ecx + 0x10], 0xa1b
mov dword [ecx + 0xc], 0xa1b
mov dword [ecx + 8], 0xa1b
mov dword [ecx + 4], 0xa1b
mov dword [ecx], 0xdc8db
mov ecx, dword [sym.imp.GDI32.dll_PatBlt]
mov dword [esp + 0x1c], eax
call ecx
sub esp, 0x18
mov dword [esp + 0x18], eax
jmp 0x401380
lea esp, [ebp - 4]
pop esi
pop ebp
ret