Function at 0x1022cc2
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1081b7e
call fcn.0105c800
sub esp, 0x450
push ebx
push esi
mov esi, ecx
call fcn.01032690
xor ebx, ebx
test al, al
je 0x1022cd7
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.01013f21
mov dword [esi + 0xc], eax
cmp dword [0x10a436c], ebx
jne 0x1022ced
mov dword [0x10a436c], esi
mov eax, dword [ebp + 8]
push ebx
mov dword [esi + 0x14], eax
call fcn.01016e12
push 0x10
mov dword [esi + 0x1c], eax
call fcn.0105b249
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x1022d18
call fcn.01027731
jmp 0x1022d1a
xor eax, eax
or dword [ebp - 4], 0xffffffff
push edi
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push ebx
mov dword [esi + 0x2c], eax
call edi
push 0x7f02
push ebx
mov dword [esi + 0x24], eax
call edi
push 0x424
mov dword [esi + 0x20], eax
call fcn.0105b249
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
mov dword [ebp - 4], 1
je 0x1022d68
push ebx
push 0xc8
mov ecx, eax
call fcn.0104423a
mov edi, eax
jmp 0x1022d6a
xor edi, edi
or dword [ebp - 4], 0xffffffff
push ebx
push edi
call fcn.010439c2
pop ecx
cmp edi, ebx
pop ecx
je 0x1022d83
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push dword [0x10a45e8]
call fcn.01043730
mov eax, dword [0x10a41bc]
pop ecx
push ebx
push str.sendtrackingonshutdown
mov ecx, dword [eax + 4]
call fcn.01011f03
cmp eax, 1
push 0xffffffffffffff9b
sete al
push str.MS_Sans_Serif
lea ecx, [ebp - 0x18]
mov byte [esi + 0x8c], al
call fcn.010087b8
mov eax, dword [0x1098824]
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], eax
mov eax, dword [0x10a41bc]
push 8
pop edi
mov byte [ebp - 4], 3
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
push str.font
call fcn.01011ddf
test al, al
je 0x1022e39
push 1
push 0x109bd80
push dword [ebp - 0x10]
lea ecx, [ebp - 0x5c]
call fcn.01016c4c
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.01016d61
cmp eax, ebx
je 0x1022e2d
push eax
lea ecx, [ebp - 0x18]
call fcn.01008a50
lea ecx, [ebp - 0x5c]
call fcn.01016d61
cmp eax, ebx
je 0x1022e2d
push eax
call fcn.0105b81b
pop ecx
mov edi, eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.01016c8b
push dword [ebp - 0x18]
mov dword [0x10a4328], edi
push 0x10a4344
call fcn.0105d010
pop ecx
pop ecx
push 0x10a4328
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [esi + 0x18], eax
mov ecx, dword [0x10a41bc]
lea eax, [ebp - 0x20]
push eax
call fcn.0100c7c7
mov ecx, dword [0x10a41bc]
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 5
call fcn.0100c69e
mov eax, dword [esi + 0x14]
push 5
mov byte [ebp - 4], 6
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x102366a
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.USER32.dll_RegisterClassA]
push ebx
push dword [esi + 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push SysReAllocStringLen
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x102301b
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
lea edi, [esi + 0x60]
push edi
push dword [esi + 0x14]
call fcn.010673e2
pop ecx
test eax, eax
pop ecx
jl 0x1022f17
push dword [esi + 0x10]
mov ecx, dword [edi]
push dword [esi + 0x14]
call fcn.010674ae
mov byte [ebp + 0xb], al
lea edi, [esi + 0x54]
push edi
call fcn.0106737d
test eax, eax
pop ecx
jl 0x1022f35
push dword [esi + 0x10]
mov ecx, dword [edi]
push dword [esi + 0x14]
call fcn.01067387
mov byte [ebp + 0xb], al
lea edi, [esi + 0x5c]
push edi
push esi
call fcn.0106dec0
pop ecx
cmp eax, ebx
pop ecx
jl 0x1022f5d
mov eax, dword [0x10a41bc]
mov ecx, dword [edi]
push 0x81
mov eax, dword [eax + 4]
push eax
call fcn.0106dfaf
mov byte [ebp + 0xb], al
cmp byte [ebp + 0xb], bl
je 0x1022faa
push str.InitData_tracking_worked._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [edi]
call fcn.0106e05d
mov ecx, dword [edi]
push eax
call fcn.0106e055
mov ecx, dword [edi]
push eax
call fcn.0106e04d
mov ecx, dword [edi]
push eax
call fcn.0106e030
push eax
lea eax, [ebp - 0x45c]
push str.Campaign_ID:__s._nFile_ID:__s._nConsumer_ID:__s._nTracking_server:__s._n
push eax
call fcn.0105c81f
add esp, 0x18
lea eax, [ebp - 0x45c]
push eax
jmp 0x1022faf
push str.InitData_tracking_failed._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x424
call fcn.0105b249
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
mov byte [ebp - 4], 7
je 0x1022fda
push ebx
push 0xc8
mov ecx, eax
call fcn.0104423a
jmp 0x1022fdc
xor eax, eax
mov dword [esi + 0x50], eax
mov ecx, dword [eax + 0x41c]
mov edx, dword [eax + 0x420]
mov byte [ebp - 4], 6
mov edx, dword [ecx + edx*4]
cmp dword [edx + 0x14], ebx
je 0x1022ffb
mov ecx, edx
jmp 0x1022ffd
mov ecx, dword [ecx]
cmp ecx, ebx
jne 0x1023012
cmp eax, ebx
je 0x102300d
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov dword [esi + 0x50], ebx
jmp 0x102301b
push ebx
push eax
call fcn.010439c2
pop ecx
pop ecx
call dword [sym.imp.WINMM.dll_mixerGetNumDevs]
cmp eax, ebx
mov dword [esi + 0x78], eax
pop edi
je 0x1023037
push ebx
push ebx
push ebx
lea eax, [esi + 0x7c]
push ebx
push eax
call dword [sym.imp.WINMM.dll_mixerOpen]
mov ecx, dword [esi + 0x5c]
push 0xffffffffffffff9b
call fcn.0106e055
push eax
lea ecx, [ebp - 0x1c]
call fcn.010087b8
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 8
cmp dword [eax - 8], ebx
je 0x1023063
push eax
push str.INSERTUSERID
mov ecx, esi
call fcn.01026bb3
mov eax, dword [0x10a41bc]
lea ecx, [ebp - 0x1c]
mov dword [eax + 0x1c], 0x107a7bc
call fcn.01001190
lea ecx, [ebp - 0x14]
call fcn.01001190
lea ecx, [ebp - 0x20]
call fcn.01001190
lea ecx, [ebp - 0x10]
call fcn.01001190
lea ecx, [ebp - 0x18]
call fcn.01001190
mov ecx, dword [ebp - 0xc]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret 4