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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x5da100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00418be0
mov dword [0x5df3cc], ebx
call fcn.004084c0
push 0x100
push main
call fcn.00408640
push 0x410
lea eax, [ebp - 0x42c]
push 0
push eax
call fcn.00554550
add esp, 0x14
lea eax, [ebp - 0x42c]
push 0x208
push eax
push dword [0x5df3cc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x42c]
push eax
push 0x584a74
push 0x5df3e0
call fcn.00411690
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x41936a
cmp dword [ebp - 0x45c], 8
jl 0x41936a
mov ecx, dword [esi + 0x20]
cmp word [ecx], 0
je 0x41936a
push dword [esi + 4]
call fcn.0055b849
push dword [esi]
mov dword [0x5df430], eax
call fcn.0055b849
add esp, 8
mov dword [0x5df3b8], eax
mov ecx, 0x5df3dc
push dword [esi + 0x10]
call fcn.00416430
push dword [esi + 0x10]
call fcn.0055b849
add esp, 4
mov ecx, 0x5df3d4
mov edi, eax
push dword [esi + 0x18]
call fcn.00416430
push dword [esi + 0x1c]
mov ecx, 0x5df3d8
call fcn.00416430
push dword [esi + 0x20]
mov ecx, 0x5df3e8
call fcn.00416430
mov eax, dword [0x5df3e8]
cmp dword [eax - 0xc], 0
je 0x41936a
mov eax, dword [0x5df3e0]
cmp dword [eax - 4], 1
jle 0x418f05
push dword [eax - 0xc]
mov ecx, 0x5df3e0
call fcn.0040a320
mov eax, dword [0x5df3e0]
push eax
call fcn.0054b4c0
mov eax, dword [esi + 0x14]
add esp, 4
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push eax
push ecx
push edx
sub edi, 1
je 0x418f3e
sub edi, 1
je 0x418f37
sub edi, 1
je 0x418f30
call fcn.0054b400
jmp 0x418f43
call fcn.0054b430
jmp 0x418f43
call fcn.0054b490
jmp 0x418f43
call fcn.0054b460
add esp, 0xc
mov edi, eax
push esi
call fcn.0041a670
add esp, 4
test edi, edi
je 0x4190a1
call fcn.0054b500
mov edx, eax
mov dword [ebp - 0x434], 0
mov ecx, edx
mov dword [ebp - 0x430], 7
xor eax, eax
mov word [ebp - 0x444], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418f82
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x444]
call fcn.004094b0
push 0x584a30
lea ecx, [ebp - 0x444]
call fcn.00417b70
call fcn.0054b4e0
push eax
lea ecx, [ebp - 0x444]
call fcn.00417b70
cmp dword [ebp - 0x430], 8
lea edi, [ebp - 0x444]
mov dword [ebp - fcn.0040d3d0], 0x5849cc
cmovae edi, dword [ebp - 0x444]
mov esi, edi
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x44c], 0
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x418ff6
sub esi, ecx
lea ecx, [ebp - 0x458]
push 0
sar esi, 1
call fcn.0040d3d0
push edi
mov dword [ebp - 0x448], esi
call fcn.0055b9cf
mov ecx, dword [ebp - 0x448]
xor edx, edx
mov dword [ebp - 0x44c], eax
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x448]
lea eax, [eax + eax*2]
push eax
call fcn.0041a675
mov edx, dword [ebp - 0x448]
add esp, 8
mov dword [ebp - 0x454], eax
push 0
push 0
lea ecx, [edx + edx*2]
push ecx
push eax
push edx
push dword [ebp - 0x44c]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x454]
mov dword [ebp - 0x450], eax
mov byte [eax + ecx], 0
mov ecx, 0x5df3e4
push dword [ebp - 0x44c]
call fcn.0040ceb0
lea ecx, [ebp - 0x458]
call fcn.0040ce60
lea ecx, [ebp - 0x444]
call fcn.00409430
mov eax, dword [0x5df3e4]
cmp dword [eax - 0xc], 0
je 0x41936a
movups xmm0, xmmword [0x584a34]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x4a8]
movups xmmword [ebp - 0x1c], xmm0
push eax
movq xmm0, qword [0x584a44]
movq qword [ebp - 0xc], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x4a0], xmm0
movlpd qword [ebp - 0x494], xmm0
movlpd qword [ebp - 0x48c], xmm0
mov dword [ebp - 0x4a4], 0x417310
mov dword [ebp - 0x498], ebx
call dword [sym.imp.USER32.dll_RegisterClassW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
sub eax, 0x3d4
cdq
sub eax, edx
mov edi, eax
push 1
sar edi, 1
call esi
sub eax, 0x258
cdq
sub eax, edx
mov edx, dword [0x5df3d8]
mov esi, eax
sar esi, 1
cmp dword [edx - 4], 1
jle 0x419158
push dword [edx - 0xc]
mov ecx, 0x5df3d8
call fcn.0040a320
mov edx, dword [0x5df3d8]
push 0
push ebx
push 0
push 0
push 0x258
push 0x3d4
push esi
push edi
push 0xcf0000
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push dword [ebp + 0x14]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xa
push 0x65
push esi
mov dword [0x5df434], esi
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x468], 0
push 0
lea eax, [ebp - 0x480]
movq qword [ebp - 0x470], xmm0
push eax
movups xmmword [ebp - 0x480], xmm0
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x419364
lea eax, [ebp - 0x480]
push eax
push dword [0x5df42c]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x419204
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push dword [0x5df430]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x419364
mov ecx, 0x5df3ec
call fcn.00409ea0
mov ecx, 0x5df3ec
test eax, eax
je 0x4192eb
push dword [0x5df3b8]
call fcn.00409e70
mov ecx, 0x5df3ec
mov edi, eax
call fcn.00409e60
imul ecx, edi, 0x11c
cmp dword [eax + ecx + 0x118], 0
jne 0x41930d
cmp byte [0x5df3c0], 0
je 0x4192f0
push 0
call fcn.0055bd6d
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x464]
push eax
mov dword [ebp - 0x460], edx
call fcn.0055bcb7
mov ebx, eax
lea edi, [edi + edi*2]
add esp, 8
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 4]
shl edx, 4
sub edx, dword [ebx + 8]
lea esi, [ecx + edx*4]
mov ecx, 0x5df3ec
call fcn.00409e60
cmp dword [eax + edi*4 + 0x6ef8], 0
je 0x4192e3
sub esi, dword [0x5df3c4]
mov ecx, 0x5df3ec
call fcn.00409e60
cmp esi, dword [eax + edi*4 + 0x6efc]
jl 0x4192f0
push esi
push dword [ebx + 4]
push dword [ebx + 8]
push 0x584a4c
call fcn.0040bdf0
add esp, 0x10
jmp 0x419364
mov dword [0x5df3c8], esi
jmp 0x4192f0
call fcn.00409df0
push 0
push 0
push 0
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x4191d3
jmp 0x419364
mov ecx, 0x5df3ec
imul esi, edi, 0x11c
call fcn.00409e60
mov ecx, 0x5df3ec
mov dword [eax + esi + 8], 0
call fcn.00409e60
mov ecx, 0x5df3ec
mov dword [eax + esi + 0x114], 1
call fcn.00409e60
mov ecx, 0x5df3ec
mov dword [eax + esi + 0x110], 0
call fcn.00409e60
mov dword [eax + esi + 0x10c], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055245e
mov esp, ebp
pop ebp
ret 0x10