Function at 0x41da20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4469a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x460
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x41da56
mov eax, 1
jmp 0x41de63
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x390
call fcn.0042f418
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0
je 0x41da8e
mov ecx, dword [ebp - 0x28]
call fcn.00401e90
mov dword [ebp - 0x2c], eax
jmp 0x41da95
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3c]
mov dword [0x45a0a0], ecx
mov edx, dword [0x45a0a0]
mov eax, dword [ebp + 8]
mov dword [edx + 0x320], eax
cmp dword [ebp + 0xc], 0
je 0x41dacf
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [0x45a0a0]
call fcn.004023a0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [0x45a0b0], 0x280
mov dword [0x45a0b4], 0x1e0
mov dword [0x45a0b8], 0
mov dword [0x45a0bc], 0
mov dword [ebp - 0x18], 0
jmp 0x41db17
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 8
jge 0x41db4a
mov eax, dword [ebp - 0x18]
movsx ecx, byte [eax + 0x457080]
sub ecx, 0x30
mov byte [ebp - 0xd], cl
movsx edx, byte [ebp - 0xd]
mov eax, dword [ebp - 0x18]
movsx ecx, byte [eax + 0x457078]
cmp edx, ecx
jne 0x41db48
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x41db0e
cmp dword [ebp - 0x1c], 0
jne 0x41dbcb
push str.296448
call fcn.004310f2
add esp, 4
add eax, 0x10000
mov dword [ebp - 0x24], eax
mov al, byte [0x457091]
mov byte [ebp - 0xd], al
movsx ecx, byte [ebp - 0xd]
cmp ecx, 0x73
jne 0x41db80
mov dword [0x45a0bc], 2
movsx edx, word [0x457094]
mov dword [0x45a0b0], edx
movsx eax, word [0x457097]
mov dword [0x45a0b4], eax
movsx ecx, word [0x45709a]
mov dword [0x45a0b8], ecx
movzx edx, word [0x45709d]
mov dword [ebp - 0x38], edx
mov eax, dword [0x4570a0]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [0x45a0a0]
call fcn.00402370
mov eax, dword [0x45a0b8]
and eax, 2
jne 0x41dc10
push 0x104
lea ecx, [ebp - 0x260]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x20
lea edx, [ebp - 0x46c]
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.0042ca40
add esp, 0xc
lea ecx, [ebp - 0x46c]
push ecx
call fcn.0042ccb0
add esp, 4
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [0x45a0a0]
call fcn.00401fe0
test eax, eax
je 0x41dc3a
push str.Startup_failed.
call fcn.0041de80
add esp, 4
mov eax, 1
jmp 0x41de63
mov eax, dword [0x45a0a0]
mov dword [0x45a0ac], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042d3f0
add esp, 4
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042c3a0
add esp, 8
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [0x45a0ac]
add edx, 0x368
push edx
call fcn.0040eeb0
add esp, 8
cmp dword [0x45a0bc], 0
je 0x41dd81
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042d3f0
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [0x45a0c0], 0x1e
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 2]
push edx
call fcn.0042f3c6
add esp, 4
mov byte [ebp - 0xd], al
push 0
push str.oniwndp
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x41dcee
lea eax, [ebp - 0x20]
push eax
call fcn.0042c420
add esp, 4
mov eax, 2
jmp 0x41de63
movsx ecx, byte [ebp - 0xd]
cmp ecx, 0x70
jne 0x41dd47
mov edx, dword [ebp - 0x14]
add edx, 6
push edx
call fcn.00432c6b
add esp, 4
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x44]
sub edx, dword [ebp - 0x4c]
mov dword [0x45a0b0], edx
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
mov dword [0x45a0b4], eax
mov dword [0x45a0b8], 0x100
mov ecx, dword [0x45a0ac]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x358], edx
movsx eax, byte [ebp - 0xd]
cmp eax, 0x73
jne 0x41dd5a
push 0
call dword [sym.imp.USER32.dll_ShowCursor]
jmp 0x41dd64
mov dword [0x45a0bc], 0
mov ecx, dword [0x45a0ac]
mov edx, dword [ecx + 0x30c]
or edx, dword [0x45a0bc]
mov eax, dword [0x45a0ac]
mov dword [eax + 0x30c], edx
lea ecx, [ebp - 0x20]
push ecx
call fcn.0042c420
add esp, 4
mov edx, dword [0x45a0ac]
mov dword [edx + 0x354], fcn.0041e080
push 0x41e410
push 6
call fcn.0040cbf0
add esp, 8
push 0x41ee30
push 7
call fcn.0040cbf0
add esp, 8
mov dword [0x4570a8], 0xffffffff
mov eax, dword [0x45a0ac]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x58]
and edx, 0x2000
jne 0x41ddfd
push 8
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
jne 0x41ddfd
mov ecx, dword [ebp - 0x54]
mov dword [0x4570a8], ecx
mov edx, dword [0x4570a8]
push edx
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push 0x10
call fcn.00405070
add esp, 4
push eax
call fcn.00417360
add esp, 4
push 0x11
call fcn.00405070
add esp, 4
push eax
call fcn.004173f0
add esp, 4
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [0x45a0b8]
push eax
mov ecx, dword [0x45a0b4]
push ecx
mov edx, dword [0x45a0b0]
push edx
push 9
call fcn.00405070
add esp, 4
push eax
call fcn.00419780
add esp, 0x18
push 0xa
call fcn.00405070
add esp, 4
push eax
call fcn.004199d0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret