Function at 0x40dbd0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 8
push dword [ecx - 4]
push ebp
mov edx, 0x604
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xf8
mov ebx, dword [ecx]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xb8]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0xb4], edx
mov dword [esp], eax
call dword [sym.imp.comctl32.dll_InitCommonControlsEx]
sub esp, 4
mov dword [esp + 4], 0x410cdc
mov dword [esp], ebx
call dword [sym.imp.user32.dll_LoadAcceleratorsW]
xor edx, edx
mov dword [ebp - 0x40], 0x409530
mov dword [ebp - 0xcc], eax
mov eax, 0x30
sub esp, 8
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x44], edx
mov edx, 4
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], ebx
mov dword [esp + 4], 0x66
mov dword [esp], ebx
call dword [sym.imp.user32.dll_LoadIconW]
mov edi, dword [sym.imp.user32.dll_GetSystemMetrics]
sub esp, 8
mov dword [ebp - 0x30], eax
mov dword [esp], 0x32
call edi
sub esp, 4
mov dword [ebp - 0xd0], eax
mov dword [esp], 0x31
call edi
lea edi, [ebp - 0x48]
sub esp, 4
mov dword [esp + 0x14], 0x8000
mov ecx, dword [ebp - 0xd0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x66
mov dword [esp + 0x10], ecx
mov dword [esp], ebx
call dword [sym.imp.user32.dll_LoadImageW]
mov edx, dword [sym.imp.user32.dll_LoadCursorW]
sub esp, 0x18
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0x7f01
mov dword [esp], 0
mov dword [ebp - 0xd4], edx
call edx
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [esp], 5
call dword [sym.imp.user32.dll_GetSysColorBrush]
mov ecx, dword [sym.imp.user32.dll_RegisterClassExW]
mov dword [ebp - 0x24], 0x898
sub esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], str.WORDPADTOP
mov dword [esp], edi
mov dword [ebp - 0xd0], ecx
call ecx
mov dword [ebp - 0x44], 0
sub esp, 4
mov dword [ebp - 0x40], 0x4041c0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x1c], 0
mov dword [esp + 4], 0x7f01
mov dword [esp], 0
mov edx, dword [ebp - 0xd4]
call edx
mov dword [ebp - 0x28], 0
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], str.PrtPreview
mov dword [esp], edi
mov ecx, dword [ebp - 0xd0]
lea edi, [ebp - 0xa8]
call ecx
sub esp, 4
mov dword [esp], edi
call fcn.00405480
mov dword [esp + 4], 1
mov dword [esp], edi
call dword [sym.imp.user32.dll_MonitorFromRect]
lea edx, [ebp - 0x98]
mov dword [ebp - 0x98], 0x28
sub esp, 8
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMonitorInfoW]
mov edx, dword [ebp - 0xa8]
lea eax, [ebp - 0x84]
mov ecx, dword [ebp - 0xa4]
sub esp, 8
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0xd0], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [sym.imp.user32.dll_IntersectRect]
mov eax, dword [ebp - 0x7c]
sub esp, 0xc
cmp dword [ebp - 0x84], eax
jge 0x40e280
mov ecx, dword [ebp - 0x78]
mov eax, 0x80000000
cmp dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xd0]
cmovge edx, eax
cmovge ecx, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0xa4]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0xa8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x2cf0000
mov dword [esp + 8], 0x410d78
mov dword [esp + 0x18], eax
mov dword [esp + 4], str.WORDPADTOP
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
sub esp, 0x30
mov dword [0x41c728], eax
lea eax, [ebp - 0xbc]
mov dword [esp], eax
call fcn.00405520
cmp esi, 1
je 0x40e290
cmp esi, 0xa
je 0x40e290
mov dword [esp + 4], esi
mov eax, dword [0x41c728]
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
xor eax, eax
sub esp, 8
call fcn.00407b20
call fcn.00407cc0
mov dword [0x40f284], 2
call fcn.00407cc0
call fcn.00405ff0
mov eax, dword [0x40f284]
mov dword [esp], eax
call fcn.00405d70
mov eax, dword [eax*4 + 0x41c710]
mov dword [esp + 4], eax
mov eax, dword [0x41c728]
mov dword [esp], eax
call fcn.00402f90
mov dword [esp], ebx
lea ebx, [ebp - 0xb0]
mov dword [esp + 4], 0x89a
call dword [sym.imp.user32.dll_LoadMenuW]
sub esp, 8
mov dword [0x41c71c], eax
call fcn.00403b90
mov eax, dword [0x40f284]
mov dword [esp], eax
call fcn.00405d70
mov eax, dword [eax*4 + 0x41c710]
mov dword [esp + 4], eax
mov eax, dword [0x41c728]
mov dword [esp], eax
call fcn.00402f90
mov dword [esp + 4], 0x7d4
mov eax, dword [0x41c728]
mov esi, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp], eax
call esi
sub esp, 8
mov dword [esp + 4], 0x7df
mov dword [esp], eax
call esi
sub esp, 8
mov edi, eax
mov dword [esp + 4], 0x7d1
mov eax, dword [0x41c728]
mov dword [esp], eax
call esi
mov esi, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 8
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xd6
mov dword [esp], eax
mov dword [ebp - 0xd0], esi
call esi
sub esp, 0x10
mov dword [esp + 8], 0x4030f0
mov dword [esp + 4], 0xfffffffc
mov dword [esp], edi
call dword [sym.imp.user32.dll_SetWindowLongW]
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x400
mov dword [esp], edi
call esi
sub esp, 0x10
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
cmp ax, 0x20
jne 0x40e01d
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 0x20
je 0x40e010
cmp ax, 0x22
je 0x40e2a8
mov eax, 0x20
movzx edx, word [ebx]
test dx, dx
jne 0x40e04c
jmp 0x40e2e7
movzx edx, word [ebx + 2]
add ebx, 2
test dx, dx
je 0x40e054
cmp ax, dx
jne 0x40e040
add ebx, 2
movzx edi, word [ebx]
test di, di
je 0x40e2e7
xor esi, esi
cmp di, 9
je 0x40e070
cmp di, 0x20
jne 0x40e083
nop
movzx edi, word [ebx + 2]
add ebx, 2
cmp di, 0x20
je 0x40e070
cmp di, 9
je 0x40e070
and edi, 0xfffffffd
cmp di, 0x2d
jne 0x40e0ba
movzx edi, word [ebx + 4]
test di, di
je 0x40e200
movzx eax, di
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_isspace]
test eax, eax
je 0x40e0ba
movzx eax, word [ebx + 2]
and eax, 0xffffffdf
cmp ax, 0x50
je 0x40e2b0
movzx eax, word [ebx]
test ax, ax
je 0x40e0f4
cmp ax, 0x22
je 0x40e2c0
mov eax, ebx
call fcn.004088f0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [0x41c728]
mov dword [esp], eax
call dword [sym.imp.user32.dll_InvalidateRect]
sub esp, 0xc
lea ebx, [ebp - 0x70]
test esi, esi
jne 0x40e211
mov esi, dword [sym.imp.user32.dll_GetMessageW]
mov edi, dword [sym.imp.user32.dll_IsDialogMessageW]
lea esi, [esi]
nop
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call esi
sub esp, 0x10
test eax, eax
je 0x40e1f0
mov dword [esp + 4], ebx
mov eax, dword [0x41c720]
mov dword [esp], eax
call edi
sub esp, 8
test eax, eax
jne 0x40e110
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0xcc]
mov dword [esp + 4], eax
mov eax, dword [0x41c728]
mov dword [esp], eax
call dword [sym.imp.user32.dll_TranslateAcceleratorW]
sub esp, 0xc
test eax, eax
jne 0x40e110
mov dword [esp], ebx
call dword [sym.imp.user32.dll_TranslateMessage]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.user32.dll_DispatchMessageW]
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.user32.dll_PeekMessageW]
sub esp, 0x14
test eax, eax
jne 0x40e110
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x400
mov eax, dword [0x41c728]
mov dword [esp], eax
mov eax, dword [ebp - 0xd0]
call eax
sub esp, 0x10
jmp 0x40e110
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
movzx eax, word [ebx + 2]
and eax, 0xffffffdf
cmp ax, 0x50
jne 0x40e0ba
mov eax, dword [0x41c728]
mov dword [ebp - 0x70], 0x28
lea ebx, [ebp - 0x70]
mov dword [ebp - 0x6c], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x64], 0x6af
sub esp, 4
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], 0x410d78
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [esp], ebx
call dword [sym.imp.user32.dll_MessageBoxIndirectW]
sub esp, 4
jmp 0x40e0ff
mov ecx, 0x80000000
mov edx, 0x80000000
jmp 0x40de2a
mov edx, dword [ebp - 0xbc]
mov eax, 3
test edx, edx
cmovne esi, eax
jmp 0x40debb
add ebx, 2
jmp 0x40e02c
add ebx, 4
mov esi, 1
jmp 0x40e062
cmp word [ebx + 2], 0
lea edx, [ebx + 2]
je 0x40e2db
mov eax, edx
lea esi, [esi]
mov ebx, eax
add eax, 2
cmp word [eax], 0
jne 0x40e2d0
xor eax, eax
mov word [ebx], ax
mov ebx, edx
jmp 0x40e0cc
lea ebx, [ebp - 0x70]
jmp 0x40e0ff