Function at 0x4149e9
Capabilities:
Check for time delay via queryperformancecounter
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b881
mov eax, dword fs:[0]
push eax
mov eax, 0x5fa4
call fcn.0050d8a0
mov eax, dword [0x59099c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [0x5eefc0], bl
jne 0x414a3a
push ebx
call fcn.0050b60e
pop ecx
push eax
call fcn.0050ce5c
pop ecx
mov byte [0x5eefc0], 1
call fcn.004b85dd
test al, al
mov eax, dword [0x5ca5d8]
mov dword [ebp - 0x5f50], eax
lea eax, [ebp - 0x5f60]
mov edi, str.SexyWindow
mov dword [ebp - 0x5f60], 8
mov dword [ebp - 0x5f58], ebx
mov dword [ebp - 0x5f54], ebx
mov dword [ebp - 0x5f44], ebx
mov dword [ebp - 0x5f48], ebx
mov dword [ebp - 0x5f4c], ebx
mov dword [ebp - 0x5f5c], 0x414940
mov dword [ebp - 0x5f40], ebx
push eax
je 0x414aa4
mov dword [ebp - 0x5f3c], 0x562234
call dword [sym.imp.USER32.dll_RegisterClassA]
jmp 0x414ab0
mov dword [ebp - 0x5f3c], edi
call dword [0x593358]
mov eax, dword [0x59227c]
mov dword [ebp - 0x5f80], eax
mov eax, dword [0x592280]
push ebx
mov dword [ebp - 0x5f7c], eax
mov esi, 0x50000000
push esi
lea eax, [ebp - 0x5f88]
push eax
mov dword [ebp - 0x5f88], ebx
mov dword [ebp - 0x5f84], ebx
call dword [sym.imp.USER32.dll_AdjustWindowRect]
call fcn.004b85dd
test al, al
push ebx
push dword [0x5ca5d8]
push ebx
push dword [0x5eebc4]
push dword [0x592280]
push dword [0x59227c]
push ebx
push ebx
push esi
je 0x414b1f
push 0x5604fd
push 0x562234
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
jmp 0x414b2c
push 0x560568
push edi
push ebx
call dword [0x593330]
push eax
mov dword [0x5eebe8], eax
call dword [sym.imp.USER32.dll_SetFocus]
push 0x3b8
call fcn.00509a64
mov esi, eax
pop ecx
mov dword [ebp - 0x5f64], esi
cmp esi, ebx
mov dword [ebp - 4], ebx
je 0x414b74
mov ecx, esi
call fcn.00484af0
mov dword [esi], vtable.DRMApp.0
mov dword [esi + 4], vtable.DRMApp.1.0
mov dword [esi + method.DRMApp.2.virtual_0], vtable.DRMApp.2.0
mov ecx, esi
jmp 0x414b76
xor ecx, ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [0x59227c]
mov dword [ecx + 0x10], eax
mov eax, dword [0x592280]
mov dword [ecx + 0x14], eax
mov eax, dword [ecx]
mov dword [0x5eebdc], ecx
call dword [eax + 0x90]
push str.UICommand
lea ecx, [ebp - 0x5fac]
call fcn.0040a406
xor esi, esi
push 0x413a66
lea eax, [ebp - 0x5fac]
inc esi
mov dword [ebp - 4], esi
push eax
mov eax, dword [0x5eebdc]
mov ecx, dword [eax + 0x398]
call fcn.00429040
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x5fac]
call fcn.0040afb1
cmp dword [0x5922d4], 0x10
mov eax, dword [0x5922c0]
jae 0x414bee
mov eax, 0x5922c0
mov ecx, dword [0x5eebdc]
push 0x4149e4
push ebx
push ebx
push eax
push dword [0x5eebe8]
call fcn.004bbc95
push str.drmcommon_scriptsmain.lua
lea eax, [ebp - 0x5fac]
push 0x5922bc
push eax
call fcn.0040dd15
add esp, 0xc
mov dword [ebp - 4], 2
push eax
mov eax, dword [0x5eebdc]
mov edi, dword [eax + 0x398]
call fcn.0042f2d0
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x5fac]
call fcn.0040aca3
mov eax, dword [0x5eebdc]
lea ecx, [eax + 0x370]
mov edx, dword [ecx]
push eax
call dword [edx + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x5f70]
push eax
call edi
push str.Init
lea ecx, [ebp - 0x5f54]
call fcn.0040a406
mov dword [ebp - 4], 3
mov eax, dword [0x5eebdc]
mov ecx, dword [eax + 0x398]
mov eax, dword [ecx]
push ebx
push ebx
lea edx, [ebp - 0x5f54]
push edx
call dword [eax + 0x20]
push ebx
push esi
lea ecx, [ebp - 0x5f54]
call fcn.0040afb1
lea eax, [ebp - 0x5f78]
push eax
call edi
lea eax, [ebp - 0x5f90]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [ebp - 0x5f78]
sub eax, dword [ebp - 0x5f70]
mov ecx, dword [ebp - 0x5f74]
sbb ecx, dword [ebp - 0x5f6c]
mov dword [ebp - 0x5f68], eax
mov dword [ebp - 0x5f64], ecx
fild qword [ebp - 0x5f68]
fild qword [ebp - 0x5f90]
push ecx
push ecx
lea eax, [ebp - 0x5f38]
fdivp st(1)
fstp qword [esp]
push str.Init_Time:__f_r_n
push eax
call fcn.0050b433
add esp, 0x10
lea eax, [ebp - 0x5f38]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [0x592258], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050bc9c
leave
ret