Function at 0x401af8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push 0x473a68
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x20], eax
xor eax, eax
mov word [ebp - 0x14], ax
cmp ebx, edi
je 0x401b51
mov eax, dword [ebx + 0x30]
cmp eax, edi
je 0x401b51
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], eax
push 0x5470
push 8
push dword [0x48b040]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
jne 0x401b83
push str.mem_alloc_error
push 1
push edi
push edi
call dword [sym.imp.PPLIB32W.DLL_XMessage]
add esp, 0x10
xor eax, eax
jmp 0x401ff3
cmp ebx, edi
je 0x401ba9
mov eax, dword [ebx + 0x30]
cmp eax, edi
je 0x401b93
mov eax, dword [eax + 0x14]
jmp 0x401b98
mov eax, dword [0x489574]
mov dword [esi + 0x2274], eax
mov al, byte [ebx + 0x18]
mov byte [esi + 0x2734], al
jmp 0x401bbb
mov eax, dword [0x489574]
mov dword [esi + 0x2274], eax
mov byte [esi + 0x2734], 0xa
cmp dword [esi + 0x2274], edi
je 0x401bec
or dword [esi + 0x2274], 0xffffffff
cmp dword [0x48a220], edi
jne 0x401bdc
mov dword [0x489610], 1
push ebx
call fcn.0046766e
mov dword [esi + 0x4a14], eax
cmp eax, edi
je 0x401b7c
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
call fcn.0044f33d
test eax, eax
jne 0x401c07
mov ecx, esi
call fcn.00424f83
jmp 0x401b7c
push dword [ebp - 0x24]
push esi
call fcn.00450edf
test byte [esi + 0x38e4], 4
je 0x401c2f
cmp ebx, edi
je 0x401c29
mov eax, dword [ebx + 0x30]
cmp eax, edi
je 0x401c29
cmp word [eax], di
jne 0x401c2f
push esi
call fcn.0041304c
push esi
call fcn.004128d9
cmp dword [esi + 0x2274], edi
jne 0x401c76
cmp dword [esi + 0x2724], 0x80000000
jne 0x401c5e
push edi
push 0x5175
push dword [0x48b024]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
movzx eax, byte [esi + 0x2734]
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push esi
call fcn.00418778
cmp dword [0x4895d4], 2
jne 0x401c94
push edi
push 0xbf49
push dword [0x48b024]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xfffffffffffffffe
lea eax, [esi + 0x38]
push eax
push dword [esi + 0xc]
call dword [sym.imp.PPLIB32W.DLL__PPxRegist_12]
lea eax, [ebp - 0x30]
push eax
push edi
push esi
push 0x43dbfc
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
mov dword [esi + 0x88], eax
call fcn.00438b1a
lea eax, [esi + 0x3104]
cmp dword [esi + 0x2274], edi
je 0x401d41
cmp dword [eax], edi
jge 0x401cd8
mov dword [eax], edi
jmp 0x401cf2
test dword [0x4870dc], 0x8000000
je 0x401cf2
cmp dword [0x488544], edi
jne 0x401cf2
mov dword [eax], 1
mov ecx, dword [ebp - 0x18]
xor eax, eax
cmp byte [esi + 0x2734], 4
sete al
dec eax
and eax, 0xffff0000
add eax, 0x1ba40
inc ecx
shl ecx, 0x12
add eax, ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x28], edi
je 0x401d21
or dword [ebp - 0x18], 0x20000
push esi
call fcn.00404887
push dword [esi + 0xc]
push dword [ebp - 0x18]
push dword [0x48b024]
push dword [esi + 0x4a14]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401d8a
cmp dword [eax], edi
jge 0x401d47
mov dword [eax], edi
mov ecx, dword [esi + 0x38e4]
test cl, 4
je 0x401d8a
cmp byte [esi + 0x2734], 4
je 0x401d8a
movzx eax, word [esi + 0x3c]
and eax, 1
and ecx, 0x20000
or eax, ecx
je 0x401d78
cmp eax, 0x20001
je 0x401d78
push dword [esi + 0xc]
jmp 0x401d84
mov ecx, esi
call fcn.0042472e
cmp eax, edi
je 0x401d8a
push eax
call dword [sym.imp.PPLIB32W.DLL__ForceSetForegroundWindow_4]
and dword [esi + 0x38e4], 0xfffbffff
push 1
push esi
call fcn.00424e36
cmp dword [esi + 0x2274], edi
je 0x401dad
test byte [0x4870dc], 4
jne 0x401dbf
mov eax, dword [esi + 0x4a64]
cmp eax, edi
je 0x401dbf
push edi
push eax
push esi
call fcn.0040b817
cmp ebx, edi
je 0x401dcf
mov eax, dword [ebx + 0x30]
cmp eax, edi
je 0x401dcf
cmp word [eax], di
jne 0x401df3
test byte [esi + 0x38e4], 1
je 0x401df3
push esi
call fcn.004507f5
test eax, eax
je 0x401df3
mov ecx, esi
call fcn.0042472e
test eax, eax
je 0x401df3
push esi
call fcn.004130ab
cmp ebx, edi
je 0x401e53
movzx eax, word [ebx + 0x2c]
cmp ax, di
je 0x401e27
push 0x43
pop ecx
mov word [ebp - 0x14], cx
mov ecx, dword [0x4895dc]
cmp ecx, edi
jne 0x401e1d
mov word [ebp - 0x12], ax
xor eax, eax
mov word [ebp - 0x10], ax
jmp 0x401e27
lea eax, [ebp - 0x12]
push eax
push ecx
call fcn.00401747
mov eax, dword [ebx + 0x30]
cmp eax, edi
je 0x401e53
cmp word [eax], di
je 0x401e41
push dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
push ebx
call fcn.00402004
jmp 0x401e53
mov dword [ebx + 0x30], edi
cmp dword [ebx + 0xc], edi
jne 0x401e53
add ebx, 0x1c
push ebx
call dword [sym.imp.PPLIB32W.DLL__ThFree_4]
cmp dword [esi + 0x5388], edi
jne 0x401e68
cmp dword [esi + 0x53d4], edi
jne 0x401e68
cmp dword [esi + 0x50], edi
je 0x401e6e
push esi
call fcn.00404887
cmp dword [esi + 0x2274], edi
je 0x401e7d
push edi
push esi
call fcn.00418778
push edi
push edi
push edi
push str._Delayed
push 0xffffffffffffffff
call dword [sym.imp.PPLIB32W.DLL__EnumCustTable_20]
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
jle 0x401ea8
push edi
push 0x3e02
push dword [0x48b024]
push dword [esi + 0xc]
call ebx
cmp dword [esi + 0x3818], edi
je 0x401ec1
push edi
push 0x3fee
push dword [0x48b024]
push dword [esi + 0xc]
call ebx
push edi
push edi
push str.FIRSTEVENT
push 0x474014
call dword [sym.imp.PPLIB32W.DLL__GetCustTable_16]
test eax, eax
jl 0x401ee8
push edi
push 0x3f02
push dword [0x48b024]
push dword [esi + 0xc]
call ebx
cmp dword [ebp - 0x1c], edi
je 0x401f69
cmp dword [0x487014], edi
je 0x401f69
cmp dword [esi + 0x2274], edi
je 0x401f69
cmp dword [0x4895d8], edi
je 0x401f69
mov eax, dword [0x48a22c]
cmp eax, dword [0x48852c]
jge 0x401f1e
lea eax, [esi + 0x10]
push eax
push edi
call fcn.004018c6
jmp 0x401f69
cmp dword [0x489610], edi
je 0x401f2b
mov dword [ebp - 0x18], edi
jmp 0x401f31
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x18], eax
mov dword [0x489610], edi
mov dword [0x487014], edi
cmp word [ebp - 0x14], di
je 0x401f53
lea eax, [ebp - 0x14]
push eax
call fcn.0045c109
cmp eax, edi
je 0x401f53
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push 0xba53
push dword [0x48b024]
push dword [esi + 0x4a14]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 1
mov dword [esi + 0x14], esi
call dword [sym.imp.PPLIB32W.DLL__UsePPx_0]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
lea eax, [esi + 0x10]
mov dword [eax], edx
mov dword [ecx], eax
call dword [sym.imp.PPLIB32W.DLL__FreePPx_0]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetGestureInfo
push dword [ebp - 0x20]
call ebx
mov dword [0x48a910], eax
cmp dword [esi + 0x279c], edi
jne 0x401fd3
push str.SetGestureConfig
push dword [ebp - 0x20]
call ebx
mov dword [0x48b044], eax
cmp eax, edi
je 0x401fd3
push 0xc
push 0x487370
push 4
push edi
push dword [esi + 0xc]
call eax
cmp dword [esi + 0x2274], edi
je 0x401ff0
push edi
push 0xba53
push dword [0x48b024]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046890b
leave
ret 8