Function at 0x4cb730
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528297
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push 0x44
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.005001b0
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.0041ad80
cmp dword [ebp - 0x30], 0
mov eax, vtable.CStringUTF8.0
mov dword [ebp - 0x68], eax
je 0x4cb79b
lea ecx, [ebp - 0x34]
call fcn.0041a760
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 0xffffffff
push 0x6e
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call dword [eax + 8]
sub esp, 0x44
mov esi, esp
mov ecx, esi
mov dword [ebp - 0x6c], esi
call fcn.0041ad80
cmp dword [esi + 0x38], 0
mov dword [esi], vtable.CStringUTF8.0
je 0x4cb7d8
lea ecx, [esi + 0x34]
call fcn.0041a760
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x40], 0xffffffff
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0041a900
mov byte [ebp - 4], 1
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
call eax
test eax, eax
jne 0x4cb82c
lea ecx, [ebp - 0x68]
call fcn.0041c2a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
push 8
lea esi, [edi + 0x260]
push esi
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
mov ecx, dword [esi]
cmp ecx, 0xa
sbb eax, eax
inc eax
mov dword [edi + 0x25c], eax
cmp ecx, 0xa
jae 0x4cb85c
push ecx
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push 0x52d978
push 0x30
call fcn.004feae3
mov esi, eax
add esp, 8
mov dword [ebp - 0x6c], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x4cb8bf
mov dword [esi], vtable.CAppTask.0
push 0xc
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.004fe2bc
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea eax, [esi + 0x10]
push eax
mov dword [esi + 0xc], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 1
jmp 0x4cb8c1
xor esi, esi
mov byte [ebp - 4], 1
mov dword [edi + 0xbe0], esi
test esi, esi
je 0x4cbb8c
call fcn.004cfdc0
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x70], esi
call fcn.004cfe90
movups xmm0, xmmword [0x53e76c]
mov esi, dword [esi + 0x2c]
push 0x6c18d94c
movups xmmword [ebp - 0x24], xmm0
sub esp, 0x10
mov dword [ebp - 0x24], 0x1003932
movups xmm0, xmmword [ebp - 0x24]
mov eax, esp
movups xmmword [eax], xmm0
call fcn.00411870
add esp, 0x14
test eax, eax
je 0x4cbbef
push 0
push esi
push 0x5488e0
call fcn.00411ac0
add esp, 0xc
test eax, eax
nop
nop
nop
nop
nop
nop
movups xmm0, xmmword [0x53e76c]
lea eax, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.004118e0
add esp, 4
test eax, eax
nop
nop
nop
nop
nop
nop
call fcn.0042a8c0
mov ecx, eax
mov dword [edi + 0xbe4], eax
call fcn.0042ab00
mov ecx, edi
call fcn.004cc400
call fcn.004296f0
mov esi, eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], esi
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x78], eax
mov eax, dword [0x59287c]
mov dword [ebp - 0x6c], eax
call fcn.004cfdc0
cmp dword [esi], 0
mov dword [ebp - 0x70], eax
jne 0x4cba92
push 0x52d978
push 0x74
call fcn.004feae3
mov esi, eax
add esp, 8
mov dword [ebp - 0x7c], esi
test esi, esi
je 0x4cba70
mov dword [esi], vtable.CApiMouse.0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0x5c], 1
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0xffffffff
mov dword [esi + 0x70], 0
jmp 0x4cba72
xor esi, esi
push dword [ebp - 0x78]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x6c]
call dword [eax + 0x58]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
add ecx, 4
push esi
mov dword [eax], esi
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [ebp - 0x74]
cmp dword [esi + 4], 0
jne 0x4cbb0a
push 0x52d978
push 0x108
call fcn.004feae3
mov esi, eax
add esp, 8
mov dword [ebp - 0x7c], esi
test esi, esi
je 0x4cbaf0
cmp dword [0x57ea50], 0
mov dword [esi], vtable.CApiKeyboard.0
jne 0x4cbad1
call fcn.004d4e60
mov dword [0x57ea50], 1
push 0x100
lea eax, [esi + 4]
push 0
push eax
call fcn.005001b0
add esp, 0xc
mov dword [esi + 0x104], 0
jmp 0x4cbaf2
xor esi, esi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
add ecx, 4
push esi
mov dword [eax + 4], esi
mov eax, dword [ecx]
call dword [eax]
call fcn.004cc620
mov ecx, eax
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
call dword [sym.imp.USER32.dll_WINNLSEnableIME]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0xbd4], eax
lea eax, [edi + 0xbdc]
push eax
push 0
push edi
push 0x4cc200
push 0
push 0
call fcn.005084b2
add esp, 0x18
mov dword [edi + 0xbd8], eax
lea ecx, [ebp - 0x68]
call fcn.0041c2a0
mov eax, 1
jmp 0x4cb810
push str.Failed_to_build_application_task_list.
lea ecx, [ebp - 0xc4]
call fcn.0041a6c0
push 0x563c54
lea eax, [ebp - 0xc4]
push eax
call fcn.004ffbbe
push 0x548874
lea ecx, [ebp - 0x108]
call fcn.0041a6c0
push 0x563c54
lea eax, [ebp - 0x108]
push eax
call fcn.004ffbbe
push 0x548828
lea ecx, [ebp - 0x14c]
call fcn.0041a6c0
push 0x563c54
lea eax, [ebp - 0x14c]
push eax
call fcn.004ffbbe
push 0x5488a8
lea ecx, [ebp - 0x190]
call fcn.0041a6c0
push 0x563c54
lea eax, [ebp - 0x190]
push eax
call fcn.004ffbbe
int3