Function at 0x417031
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a98d
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x59de90]
xor eax, ebp
mov dword [ebp - 0x40], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 0xa4]
call fcn.004193ef
test eax, eax
jne 0x41707c
xor eax, eax
jmp 0x41778a
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa4]
mov eax, dword [eax + 0x94]
sub eax, dword [ecx + 0x8c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa4]
mov eax, dword [eax + 0x98]
sub eax, dword [ecx + 0x90]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xa4]
push dword [eax + 0x358]
lea ecx, [ebp - 0x20]
call fcn.0041128e
and dword [ebp - 4], 0
push 0x20
push 0x20
push 0x20
push 0
lea ecx, [ebp - 0x9c]
call fcn.00411243
push eax
lea ecx, [ebp - 0x20]
call fcn.004112d1
mov eax, dword [ebp - 0x10]
add eax, 0x14
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x14
push eax
push 0xfffffffffffffff6
push 0xfffffffffffffff6
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xa4]
add ecx, 0x14
call fcn.0041b496
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 0x8c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 0x90]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x28], 0
and dword [ebp - 0x30], 0
jmp 0x417139
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0xa4]
add ecx, 0x2f0
call fcn.00414ead
cmp dword [ebp - 0x30], eax
jae 0x41771c
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0xa4]
add ecx, 0x2f0
call fcn.00418006
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4176fe
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0x334]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
cmp dword [eax + 0x60], 0
je 0x417253
mov ecx, dword [ebp - 0xa4]
add ecx, 0x28c
call fcn.0041b487
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
inc eax
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xa4]
add ecx, 0x28c
call fcn.0041b400
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x2c]
add eax, 4
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx + 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0x334]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
jmp 0x417132
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 0xf0], 1
jne 0x4172b0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0xa4]
mov eax, dword [eax + 0x14]
cmp eax, dword [ecx + 0x2ec]
jne 0x4172b0
mov eax, dword [ebp - 0xa4]
push dword [eax + 0x334]
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xa4]
add ecx, 0x1d4
call fcn.0041b496
push 0x576b84
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4172bb
push 0x576b8c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
cmp dword [eax + 0x58], 0
je 0x41736c
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x48], 0
je 0x41736c
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
cmp dword [eax + 0x50], 0
jne 0x41736c
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
cmp dword [eax + 0x54], 0
jne 0x41736c
mov ecx, dword [ebp - 0xa4]
add ecx, 0x230
call fcn.0041b487
push eax
mov ecx, dword [ebp - 0xa4]
add ecx, 0x230
call fcn.00421b10
push eax
push 0
push 0
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 0x334]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xa4]
add ecx, 0x230
call fcn.0041b487
cdq
sub eax, edx
sar eax, 1
sub esi, eax
push esi
mov eax, dword [ebp - 0x24]
add eax, 0xa
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xa4]
add ecx, 0x230
call fcn.0041b522
jmp 0x4173ee
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
cmp dword [eax + 0x54], 0
je 0x4173ee
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
cmp dword [eax + 0x58], 0
jne 0x4173ee
mov ecx, dword [ebp - 0x34]
add ecx, 8
call fcn.0041b478
test eax, eax
je 0x4173ee
mov ecx, dword [ebp - 0x34]
add ecx, 8
call fcn.0041b487
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 8
call fcn.00421b10
push eax
push 0
push 0
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 0x334]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
add ecx, 8
call fcn.0041b487
cdq
sub eax, edx
sar eax, 1
sub esi, eax
push esi
mov eax, dword [ebp - 0x24]
add eax, 0xa
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 8
call fcn.0041b522
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
cmp dword [eax + 0x50], 0
je 0x417484
mov ecx, dword [ebp - 0xa4]
add ecx, 0x178
call fcn.0041b487
push eax
mov ecx, dword [ebp - 0xa4]
add ecx, 0x178
call fcn.00421b10
push eax
push 0
push 0
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 0x334]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xa4]
add ecx, 0x178
call fcn.0041b487
cdq
sub eax, edx
sar eax, 1
sub esi, eax
push esi
mov ecx, dword [ebp - 0xa4]
add ecx, 0x178
call fcn.00421b10
mov ecx, dword [ebp - 0x14]
sub ecx, eax
add ecx, dword [ebp - 0x24]
push ecx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xa4]
add ecx, 0x178
call fcn.0041b522
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 0xfc], 0
je 0x4176fe
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.004157ca
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 0x324], 2
jne 0x4174c2
push 1
lea ecx, [ebp - 0x3c]
call fcn.00415807
jmp 0x4174e7
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 0x324], 3
jne 0x4174dd
push 2
lea ecx, [ebp - 0x3c]
call fcn.00415807
jmp 0x4174e7
push 0
lea ecx, [ebp - 0x3c]
call fcn.00415807
mov ecx, dword [ebp - 0x34]
add ecx, 8
call fcn.0041b478
test eax, eax
jne 0x4175f0
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 0x334]
add eax, 3
mov dword [ebp - 0xa8], eax
fild dword [ebp - 0xa8]
push ecx
fstp dword [esp]
fild dword [ebp - 0x14]
push ecx
fstp dword [esp]
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 0x334]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xa4]
mov ecx, dword [ecx + 0x320]
shr ecx, 1
sub eax, ecx
mov dword [ebp - 0xb0], eax
and dword [ebp - 0xac], 0
fild qword [ebp - 0xb0]
push ecx
fstp dword [esp]
mov eax, dword [ebp - 0x24]
add eax, 0x20
mov dword [ebp - 0xb4], eax
fild dword [ebp - 0xb4]
push ecx
fstp dword [esp]
lea ecx, [ebp - 0x6c]
call fcn.00415799
lea ecx, [ebp - 0x5c]
call fcn.0040d4d4
mov byte [ebp - 4], 2
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
add ecx, 0x18
call fcn.00401c04
push eax
call fcn.00421092
pop ecx
pop ecx
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 0xfc]
push dword [eax + 8]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 0xfc]
push dword [eax + 4]
lea ecx, [ebp - 0x5c]
call fcn.00417fd7
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040d51d
push eax
lea ecx, [ebp - 0x20]
call fcn.00415897
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.0040d500
jmp 0x4176f2
mov eax, dword [ebp - 0xa4]
fild dword [eax + 0x334]
push ecx
fstp dword [esp]
fild dword [ebp - 0x14]
push ecx
fstp dword [esp]
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 0x334]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xa4]
mov ecx, dword [ecx + 0x320]
shr ecx, 1
sub eax, ecx
mov dword [ebp - 0xbc], eax
and dword [ebp - 0xb8], 0
fild qword [ebp - 0xbc]
push ecx
fstp dword [esp]
mov ecx, dword [ebp - 0x34]
add ecx, 8
call fcn.00421b10
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + eax*2]
mov dword [ebp - 0xc0], eax
fild dword [ebp - 0xc0]
push ecx
fstp dword [esp]
lea ecx, [ebp - 0x98]
call fcn.00415799
lea ecx, [ebp - 0x88]
call fcn.0040d4d4
mov byte [ebp - 4], 3
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
add ecx, 0x18
call fcn.00401c04
push eax
call fcn.00421092
pop ecx
pop ecx
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 0xfc]
push dword [eax + 8]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 0xfc]
push dword [eax + 4]
lea ecx, [ebp - 0x88]
call fcn.00417fd7
push eax
lea ecx, [ebp - 0x88]
call fcn.0040d51d
push eax
lea ecx, [ebp - 0x20]
call fcn.00415897
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.0040d500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004157f3
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0x334]
mov dword [ebp - 0x2c], ecx
jmp 0x417132
mov ecx, dword [ebp + 8]
call fcn.0041584c
mov dword [ebp - 0x18], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0xa4]
push dword [eax + 0x358]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
mov eax, dword [ebp - 0xa4]
push dword [eax + 0x90]
mov eax, dword [ebp - 0xa4]
push dword [eax + 0x8c]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
call fcn.00415875
mov dword [ebp - 0xa0], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004112be
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00524b49
leave
ret 4