Function at 0x4179b1
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f375b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
lea ecx, [ebp - 0x34]
call fcn.004025e0
lea ecx, [ebp - 0x20]
call fcn.004025e0
push 8
call fcn.00422b80
mov dword [ebp - 0x154], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x154], 0
je 0x417a0f
mov ecx, dword [ebp - 0x154]
call fcn.00422be0
mov dword [ebp - 0x168], eax
jmp 0x417a19
mov dword [ebp - 0x168], 0
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x150], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x40], ecx
push 0x51af24
push 0
push 0
push 1
push 2
mov dl, byte [0x53983c]
push edx
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xf
mov ecx, dword [ebp - 0x40]
call fcn.00422c50
cmp dword [ebp + 0xc], 1
jne 0x417aae
mov dword [ebp - 0x34], 0x14
mov dword [ebp - 0x30], 0x10e
mov dword [ebp - 0x2c], 0xbe
mov dword [ebp - 0x28], 0x12d
mov dword [ebp - 0x20], 0xc8
mov dword [ebp - 0x1c], 0x10e
mov dword [ebp - 0x18], 0x190
mov dword [ebp - 0x14], 0x123
mov dword [ebp - 0x44], 0x48e
jmp 0x417bcf
cmp dword [ebp + 0xc], 2
jne 0x417af8
mov dword [ebp - 0x34], 0x14
mov dword [ebp - 0x30], 0x12e
mov dword [ebp - 0x2c], 0xbe
mov dword [ebp - 0x28], 0x14d
mov dword [ebp - 0x20], 0xc8
mov dword [ebp - 0x1c], 0x12e
mov dword [ebp - 0x18], 0x190
mov dword [ebp - 0x14], 0x143
mov dword [ebp - 0x44], 0x48f
jmp 0x417bcf
cmp dword [ebp + 0xc], 3
jne 0x417b42
mov dword [ebp - 0x34], 0x14
mov dword [ebp - 0x30], 0x14e
mov dword [ebp - 0x2c], 0xbe
mov dword [ebp - 0x28], 0x16d
mov dword [ebp - 0x20], 0xc8
mov dword [ebp - 0x1c], 0x14e
mov dword [ebp - 0x18], 0x190
mov dword [ebp - 0x14], 0x163
mov dword [ebp - 0x44], 0x490
jmp 0x417bcf
cmp dword [ebp + 0xc], 4
jne 0x417b89
mov dword [ebp - 0x34], 0x14
mov dword [ebp - 0x30], 0x16e
mov dword [ebp - 0x2c], 0xbe
mov dword [ebp - 0x28], 0x193
mov dword [ebp - 0x20], 0xc8
mov dword [ebp - 0x1c], 0x16e
mov dword [ebp - 0x18], 0x190
mov dword [ebp - 0x14], 0x183
mov dword [ebp - 0x44], 0x491
jmp 0x417bcf
mov dword [ebp - 0x34], 0x14
mov dword [ebp - 0x30], 0x12e
mov dword [ebp - 0x2c], 0xbe
mov dword [ebp - 0x28], 0x148
mov dword [ebp - 0x28], 0x168
mov dword [ebp - 0x20], 0xc8
mov dword [ebp - 0x1c], 0x12e
mov dword [ebp - 0x18], 0x190
mov dword [ebp - 0x14], 0x143
mov dword [ebp - 0x44], 0x48d
call fcn.00422ba0
mov dword [ebp - 0x48], eax
push 0x3c
call fcn.00422b80
mov dword [ebp - 0x15c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x15c], 0
je 0x417c07
mov ecx, dword [ebp - 0x15c]
call fcn.004086a0
mov dword [ebp - 0x16c], eax
jmp 0x417c11
mov dword [ebp - 0x16c], 0
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x158], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x3c], ecx
push 0x477
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x34]
push eax
push 0x40000002
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x1fc]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.004ecdd1
test eax, eax
jne 0x417ca0
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x1fc]
push eax
push 0x51af2c
lea ecx, [ebp - 0xcc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0xcc]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x417ecd
mov eax, dword [ebp + 8]
imul eax, eax, 0x138c
mov ecx, dword [0x53a2a0]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + eax + 0x1384], edx
push 1
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
mov ecx, dword [edx + ecx + 0x1384]
call fcn.00422ce0
push 0
mov eax, dword [ebp + 8]
imul eax, eax, 0x138c
mov ecx, dword [0x53a2a0]
mov ecx, dword [ecx + eax + 0x1384]
call fcn.004e7896
push 0x40
call fcn.00422b80
mov dword [ebp - 0x164], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x164], 0
je 0x417d27
mov ecx, dword [ebp - 0x164]
call fcn.00422df0
mov dword [ebp - 0x170], eax
jmp 0x417d31
mov dword [ebp - 0x170], 0
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x160], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x20]
push eax
push 0x50810080
mov ecx, dword [ebp - 0x4c]
call fcn.004ed133
test eax, eax
jne 0x417da8
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x2c9]
push eax
push 0x51af50
lea ecx, [ebp - 0x14c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x417ecd
mov eax, dword [ebp + 8]
imul eax, eax, 0x138c
mov ecx, dword [0x53a2a0]
mov edx, dword [ebp - 0x4c]
mov dword [ecx + eax + 0x1380], edx
push 1
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
mov ecx, dword [edx + ecx + 0x1380]
call fcn.00422ce0
mov eax, dword [ebp + 8]
imul eax, eax, 0x138c
mov ecx, dword [0x53a2a0]
lea edx, [ecx + eax + 0x24e]
push edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x138c
mov ecx, dword [0x53a2a0]
mov ecx, dword [ecx + eax + 0x1380]
call fcn.004e7795
push 0
mov edx, dword [ebp + 8]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
mov ecx, dword [eax + edx + 0x1380]
call fcn.004e7896
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x39]
push eax
call fcn.004cf71f
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x417e5c
mov dword [ebp - 0x38], 0x14
cmp dword [ebp - 0x4c], 0
jne 0x417e64
jmp 0x417ecd
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00402610
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0x3c], 5
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x24], 0
je 0x417ea6
cmp dword [ebp - 0x10], 0
jne 0x417ea6
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.00406680
push eax
call sub.IMM32.dll_ImmAssociateContext
cmp dword [ebp - 0x4c], 0
je 0x417eb3
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x3c], 0
je 0x417ec0
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x40], 0
je 0x417ecd
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret