Function at 0x421d80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456bc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x45c
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x421db6
mov eax, 1
jmp 0x42216a
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x3b0
call fcn.00434bef
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
je 0x421dee
mov ecx, dword [ebp - 0x20]
call fcn.00402f00
mov dword [ebp - 0x24], eax
jmp 0x421df5
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x30]
mov dword [0x46b190], ecx
mov edx, dword [0x46b190]
mov eax, dword [ebp + 8]
mov dword [edx + 0x320], eax
cmp dword [ebp + 0xc], 0
je 0x421e2f
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [0x46b190]
call fcn.004035c0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov dword [0x46b198], 0x280
mov dword [0x46b19c], 0x1e0
mov dword [0x46b1a0], 0
mov dword [0x46b1a4], 0
mov dword [ebp - 0x14], 0
jmp 0x421e77
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 8
jge 0x421eaa
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 0x469090]
sub ecx, 0x30
mov byte [ebp - 0xd], cl
movsx edx, byte [ebp - 0xd]
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 0x469088]
cmp edx, ecx
jne 0x421ea8
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x421e6e
cmp dword [ebp - 0x1c], 0
jne 0x421f2b
push str._1_________2_________3______
call fcn.0043d2a8
add esp, 4
add eax, 0x10000
mov dword [ebp - 0x28], eax
mov al, byte [0x4690a1]
mov byte [ebp - 0xd], al
movsx ecx, byte [ebp - 0xd]
cmp ecx, 0x73
jne 0x421ee0
mov dword [0x46b1a4], 2
movsx edx, word [0x4690a4]
mov dword [0x46b198], edx
movsx eax, word [0x4690a7]
mov dword [0x46b19c], eax
movsx ecx, word [0x4690aa]
mov dword [0x46b1a0], ecx
movzx edx, word [0x4690ad]
mov dword [ebp - 0x38], edx
mov eax, dword [0x4690b0]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [0x46b190]
call fcn.00403590
mov eax, dword [0x46b1a0]
and eax, 2
jne 0x421f70
push 0x104
lea ecx, [ebp - 0x25c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x20
lea edx, [ebp - 0x468]
push edx
lea eax, [ebp - 0x25c]
push eax
call fcn.004338d0
add esp, 0xc
lea ecx, [ebp - 0x468]
push ecx
call fcn.00433ba0
add esp, 4
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [0x46b190]
call fcn.00403160
test eax, eax
je 0x421f9a
push str.Startup_failed.
call fcn.00422180
add esp, 4
mov eax, 1
jmp 0x42216a
mov eax, dword [0x46b190]
mov dword [0x46b194], eax
cmp dword [0x46b1a4], 0
je 0x422094
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00434320
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [0x46b1a8], 0x1e
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 2]
push eax
call fcn.0043c1fa
add esp, 4
mov byte [ebp - 0xd], al
push 0
push str.oniwndp
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x422001
mov eax, 2
jmp 0x42216a
movsx ecx, byte [ebp - 0xd]
cmp ecx, 0x70
jne 0x42205a
mov edx, dword [ebp - 0x18]
add edx, 6
push edx
call fcn.0043d27e
add esp, 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x48]
mov dword [0x46b198], edx
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
mov dword [0x46b19c], eax
mov dword [0x46b1a0], 0x100
mov ecx, dword [0x46b194]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 0x358], edx
movsx eax, byte [ebp - 0xd]
cmp eax, 0x73
jne 0x42206d
push 0
call dword [sym.imp.USER32.dll_ShowCursor]
jmp 0x422077
mov dword [0x46b1a4], 0
mov ecx, dword [0x46b194]
mov edx, dword [ecx + 0x30c]
or edx, dword [0x46b1a4]
mov eax, dword [0x46b194]
mov dword [eax + 0x30c], edx
mov ecx, dword [0x46b194]
mov dword [ecx + 0x354], fcn.00422440
push 0x4227e0
push 6
call fcn.00410d90
add esp, 8
push 0x423200
push 7
call fcn.00410d90
add esp, 8
mov dword [0x4690b8], 0xffffffff
mov edx, dword [0x46b194]
mov eax, dword [edx]
mov ecx, dword [eax + 0x58]
and ecx, 0x2000
jne 0x422104
push 8
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
jne 0x422104
mov eax, dword [ebp - 0x50]
mov dword [0x4690b8], eax
mov ecx, dword [0x4690b8]
push ecx
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push 0x10
call fcn.00406310
add esp, 4
push eax
call fcn.0041b0e0
add esp, 4
push 0x11
call fcn.00406310
add esp, 4
push eax
call fcn.0041b180
add esp, 4
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, dword [0x46b1a0]
push edx
mov eax, dword [0x46b19c]
push eax
mov ecx, dword [0x46b198]
push ecx
push 9
call fcn.00406310
add esp, 4
push eax
call fcn.0041dd10
add esp, 0x18
push 0xa
call fcn.00406310
add esp, 4
push eax
call fcn.0041df70
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret