Function at 0x40c160
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4762f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
call fcn.004601e6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
call fcn.004601e6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
call fcn.004601e6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x64], eax
call fcn.004601e6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x60], eax
call fcn.004601e6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x5c], eax
call fcn.004601e6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x50], eax
call fcn.004601e6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
call fcn.004601e6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
call fcn.004601e6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0041f7e0
movzx ebx, word [ebp + 8]
mov ecx, ebx
imul ecx, ecx, 0x14c
lea edi, [ecx + esi]
push 0x47ec04
lea ecx, [edi + 0x330]
call fcn.00462114
mov edx, dword [edi + 0x34c]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0xd4
call fcn.004600d9
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x40c293
mov ecx, eax
call fcn.00432b70
mov dword [ebp - 0x1c], eax
jmp 0x40c29a
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x1e04]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x1df8]
dec eax
imul eax, eax, 0xf
add ecx, 0x1d5
shl ecx, 4
add eax, ebx
add ecx, esi
mov ecx, dword [ecx + 4]
shl eax, 6
add eax, ecx
add eax, 0x14
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402260
push 4
push str.http
lea ecx, [ebp - 0x64]
call fcn.00401fe0
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
cmp eax, 7
jg 0x40c2f4
or eax, 0xffffffff
jmp 0x40c30d
lea eax, [edi + 7]
push 0x2f
push eax
call fcn.00451394
add esp, 8
test eax, eax
jne 0x40c30b
or eax, 0xffffffff
jmp 0x40c30d
sub eax, edi
add eax, 0xfffffff9
push eax
push 7
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00408ff0
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.00402260
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c34d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [edi - 0xc]
cmp ecx, 7
mov dword [ebp - 0x20], ecx
jg 0x40c35d
or eax, 0xffffffff
jmp 0x40c379
lea eax, [edi + 7]
push 0x2f
push eax
call fcn.00451394
mov ecx, dword [ebp - 0x20]
add esp, 8
test eax, eax
jne 0x40c377
or eax, 0xffffffff
jmp 0x40c379
sub eax, edi
sub ecx, eax
push ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409070
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.00402260
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x2f
push edi
call fcn.00450e65
add esp, 8
test eax, eax
jne 0x40c3ca
or eax, 0xffffffff
jmp 0x40c3cc
sub eax, edi
inc eax
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.00405280
mov eax, dword [0x49d63c]
push str.766DIY_
push eax
lea ecx, [ebp - 0x18]
push 0x47ebec
push ecx
call fcn.00402460
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 0xc]
add esp, 0x10
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.004092d0
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x54], 1
call fcn.00402260
mov ax, word [ebp + 8]
mov ecx, dword [esi + 0x1e04]
mov edx, dword [esi + 0x1c]
mov word [ebp - 0x40], ax
mov eax, dword [esi + 0x1df8]
mov dword [ebp - 0x3c], eax
dec eax
imul eax, eax, 0xf
mov dword [ebp - 0x38], ecx
add ecx, 0x1d5
shl ecx, 4
add eax, ebx
add ecx, esi
mov ecx, dword [ecx + 4]
shl eax, 6
add eax, ecx
mov ecx, dword [eax]
push edx
sub esp, 0x3c
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x64]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
mov dword [ebp - 0x58], 0x50
call fcn.00408ee0
mov edi, dword [ebp - 0x1c]
mov ecx, edi
call fcn.00436d10
test eax, eax
je 0x40c64b
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [esi + 0x1da4]
call fcn.0040b9c0
mov eax, dword [esi + 0x1df8]
mov ecx, dword [esi + 0x1e04]
dec eax
imul eax, eax, 0xf
add ecx, 0x1d5
shl ecx, 4
add eax, ebx
add ecx, esi
mov ecx, dword [ecx + 4]
shl eax, 6
add eax, ecx
mov byte [eax + 0x3a], 1
mov ecx, dword [0x49d630]
xor edi, edi
mov edx, ecx
nop
test ecx, ecx
jne 0x40c4c8
xor eax, eax
jmp 0x40c4d2
mov eax, dword [0x49d634]
sub eax, ecx
sar eax, 6
cmp edi, eax
jge 0x40c522
mov eax, dword [esi + 0x1df8]
mov ecx, dword [esi + 0x1e04]
dec eax
imul eax, eax, 0xf
add ecx, 0x1d5
shl ecx, 4
add eax, ebx
add ecx, esi
mov ecx, dword [ecx + 4]
shl eax, 6
add eax, ecx
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x40c508
mov al, byte [edx + 0x3a]
test al, al
je 0x40c514
mov ecx, dword [0x49d630]
inc edi
add edx, 0x40
jmp 0x40c4c0
mov eax, dword [0x49d630]
shl edi, 6
add edi, eax
mov byte [edi + 0x3a], 1
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c543
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c560
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c57d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c59a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c612
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c636
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
mov byte [ebp - 4], 6
je 0x40c65b
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push 0x47ebd4
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c68e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c6ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c6c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c6e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c702
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c71f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c73c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c75d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c781
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4