Function at 0x46e950
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4f91bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x1e], cl
mov byte [0x4f9b62], 0
call fcn.0046dec0
mov bl, byte [0x4f9b62]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test bl, bl
je 0x46e994
push 0x4fe3f0
call edi
mov bl, byte [0x4f9b62]
mov byte [esi + 0x30f], 1
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x46e9ac
push 0x4fe3f0
call esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 8
push eax
push 8
push 0x3a
mov dword [ebp - 0x30], 0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
call fcn.0046dec0
mov cl, byte [0x4f9b62]
mov ebx, eax
test cl, cl
je 0x46e9fa
push 0x4fe3f0
call edi
mov cl, byte [0x4f9b62]
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x2cc], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x2d0], eax
test cl, cl
je 0x46ea17
push 0x4fe3f0
call esi
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 8
push eax
push 8
push 0x34
mov dword [ebp - 0x38], 0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
call fcn.0046dec0
mov cl, byte [0x4f9b62]
mov ebx, eax
test cl, cl
je 0x46ea5f
push 0x4fe3f0
call edi
mov cl, byte [0x4f9b62]
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x2d4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x2d8], eax
test cl, cl
je 0x46ea7c
push 0x4fe3f0
call esi
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x18
push eax
push 0x18
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x32
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
movups xmm0, xmmword [ebp - 0x1c]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [ebp - 0x28], xmm0
call fcn.0046dec0
mov cl, byte [0x4f9b62]
mov ebx, eax
test cl, cl
je 0x46ead1
push 0x4fe3f0
call edi
mov cl, byte [0x4f9b62]
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [ebx + 0x2dc], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [ebx + 0x2ec], xmm0
test cl, cl
je 0x46eaf4
push 0x4fe3f0
call esi
call fcn.0046dec0
mov cl, byte [0x4f9b62]
mov ebx, eax
test cl, cl
je 0x46eb12
push 0x4fe3f0
call edi
mov cl, byte [0x4f9b62]
mov al, byte [ebp - 0x1d]
mov byte [ebx + 0x2fa], al
test cl, cl
je 0x46eb26
push 0x4fe3f0
call esi
cmp byte [ebp - 0x1e], 0
je 0x46eb3b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dl, 1
mov ecx, eax
call fcn.0046ec40
push 0x4d2af4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46eb65
push str.SetProcessDPIAware
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46eb5e
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x500654]
cmp eax, dword [ecx + 4]
jle 0x46eba2
push 0x500654
call fcn.00482a1f
add esp, 4
cmp dword [0x500654], 0xffffffff
jne 0x46eba2
call fcn.0047ab50
push 0x500654
call fcn.004829e0
add esp, 4
mov ecx, dword [0x500668]
mov eax, ecx
mov edx, dword [0x50066c]
or eax, edx
jne 0x46ebc4
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
xorps xmm0, xmm0
mov dword [0x500678], ecx
mov dword [0x50067c], edx
mov dword [0x500670], ecx
mov dword [0x500674], edx
movlpd qword [0x500668], xmm0
mov byte [0x500659], 0
call fcn.0046dec0
mov cl, byte [0x4f9b62]
mov ebx, eax
test cl, cl
je 0x46ec0c
push 0x4fe3f0
call edi
mov cl, byte [0x4f9b62]
mov byte [ebx + 0x30c], 1
test cl, cl
je 0x46ec1e
push 0x4fe3f0
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00482854
mov esp, ebp
pop ebp
ret 8