Function at 0x410940
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x422a6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x390
call fcn.004167a4
add esp, 4
mov dword [esp + 0xc], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x238], edi
je 0x41098a
mov ecx, eax
call fcn.00401a40
jmp 0x41098c
xor eax, eax
mov ecx, dword [esp + 0x240]
mov dword [eax + 0x320], ecx
mov ecx, dword [esp + 0x244]
cmp ecx, edi
mov dword [esp + 0x238], 0xffffffff
mov dword [0x42bef0], eax
je 0x4109bc
push ecx
mov ecx, eax
call fcn.00401a80
mov dl, byte [0x42a130]
mov cl, byte [0x42a128]
sub dl, 0x30
xor esi, esi
xor eax, eax
cmp dl, cl
mov dword [0x42beec], 0x280
mov dword [0x42bee8], 0x1e0
mov dword [0x42bee4], edi
mov dword [0x42bedc], edi
jne 0x4109f8
mov eax, 1
mov cl, byte [0x42a131]
mov dl, byte [0x42a129]
sub cl, 0x30
cmp cl, dl
jne 0x410a0c
inc eax
mov dl, byte [0x42a132]
mov cl, byte [0x42a12a]
sub dl, 0x30
cmp dl, cl
jne 0x410a20
inc eax
mov cl, byte [0x42a133]
mov dl, byte [0x42a12b]
sub cl, 0x30
cmp cl, dl
jne 0x410a34
inc eax
mov dl, byte [0x42a134]
mov ecx, dword [0x42a12c]
sub dl, 0x30
cmp dl, cl
jne 0x410a48
inc eax
mov dl, byte [0x42a135]
sub dl, 0x30
cmp dl, ch
jne 0x410a56
inc eax
mov dl, byte [0x42a136]
mov cx, word [0x42a12e]
sub dl, 0x30
cmp dl, cl
jne 0x410a6b
inc eax
mov dl, byte [0x42a137]
sub dl, 0x30
cmp dl, ch
jne 0x410a79
inc eax
cmp eax, edi
jne 0x410ae4
push str.104448
call fcn.0041784a
mov esi, eax
mov al, byte [0x42a141]
add esp, 4
add esi, 0x10000
cmp al, 0x73
jne 0x410aa5
mov dword [0x42bedc], 2
movsx eax, word [0x42a144]
movsx ecx, word [0x42a147]
movsx edx, word [0x42a14a]
mov dword [0x42bee8], ecx
movzx ecx, word [0x42a14d]
mov dword [0x42beec], eax
mov eax, dword [0x42a150]
push eax
push ecx
mov ecx, dword [0x42bef0]
mov dword [0x42bee4], edx
call fcn.00401b30
test byte [0x42bee4], 2
jne 0x410b22
push 0x104
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x20
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00415aa0
lea edx, [esp + 0x134]
push edx
call fcn.00415ac0
add esp, 0x10
mov ecx, dword [0x42bef0]
push esi
call fcn.00401d00
test eax, eax
je 0x410b80
push 0x30
push str.Error
lea eax, [esp + 0x14]
push eax
push str.Startup_failed.
mov dword [esp + 0x1c], edi
call fcn.00415780
add esp, 8
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0xc]
push ecx
call fcn.00415790
add esp, 4
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
add esp, 0x234
ret
mov edx, dword [0x42bef0]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push ebx
mov dword [0x42bee0], edx
call esi
push eax
call fcn.00415ca0
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00415780
mov edx, dword [esp + 0x18]
mov eax, dword [0x42bee0]
push edx
add eax, 0x368
push eax
call fcn.0040b4b0
mov eax, dword [0x42bedc]
add esp, 0x14
cmp eax, edi
je 0x410c9f
call esi
push eax
call fcn.00415ca0
mov esi, eax
movsx ecx, byte [esi + 1]
push ecx
mov dword [0x42bed8], 0x1e
call fcn.004161fd
add esp, 8
push edi
push str.oniwndp
mov bl, al
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x410c28
lea edx, [esp + 0xc]
push edx
call fcn.00415790
add esp, 4
pop ebx
pop edi
mov eax, 2
pop esi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
add esp, 0x234
ret
cmp bl, 0x70
jne 0x410d5f
add esi, 3
push esi
call fcn.0041784a
mov esi, eax
add esp, 4
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub ecx, edx
mov edx, dword [esp + 0x20]
sub edx, eax
mov eax, dword [0x42bee0]
mov dword [0x42beec], ecx
mov dword [0x42bee8], edx
mov dword [0x42bee4], 0x100
mov dword [eax + 0x358], esi
mov dword [0x42bedc], edi
mov eax, dword [0x42bee0]
mov edx, dword [eax + 0x30c]
mov ecx, dword [0x42bedc]
or edx, ecx
mov dword [eax + 0x30c], edx
lea edx, [esp + 0xc]
push edx
call fcn.00415790
mov eax, dword [0x42bee0]
mov dword [eax + 0x354], fcn.004106f0
mov eax, dword [eax]
mov ecx, dword [eax + 0x58]
add esp, 4
test ch, 0x20
mov dword [0x42a158], 0xffffffff
jne 0x410cf0
push 8
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
jne 0x410cf0
mov eax, dword [esp + 0x14]
push eax
mov dword [0x42a158], eax
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push 0x10
call fcn.004038c0
push eax
call fcn.0040c820
push 0x11
call fcn.004038c0
push eax
call fcn.0040c870
mov edx, dword [0x42bee4]
mov eax, dword [0x42bee8]
mov ecx, dword [0x42beec]
add esp, 0x10
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
push eax
push ecx
push 9
call fcn.004038c0
add esp, 4
push eax
call fcn.00410440
push 0xa
call fcn.004038c0
push eax
call fcn.00410380
mov ecx, dword [esp + 0x254]
add esp, 0x20
pop ebx
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x234
ret
cmp bl, 0x73
jne 0x410c80
push edi
call dword [sym.imp.USER32.dll_ShowCursor]
jmp 0x410c86