Function at 0x46a41c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46a7fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00405dd8
mov dword [ebp - 8], 0xff0002
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe48], 0
je 0x46a478
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb4]
cmp byte [eax + 0x98], 0
je 0x46a478
mov dword [ebp - 8], 0xff0003
jmp 0x46a7dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb4]
cmp byte [eax + 0x98], 0
je 0x46a499
mov eax, dword [eax + 0x94]
cmp eax, dword [ebp - 4]
jne 0x46a7dc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xb4]
cmp byte [ebx + 0x98], 0
je 0x46a537
mov eax, dword [ebx + 0x94]
cmp eax, dword [ebp - 4]
jne 0x46a537
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xe3c]
mov eax, dword [eax + 0xe38]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0xe30]
sbb edx, dword [ecx + 0xe34]
push edx
push eax
mov eax, dword [ebx + 0x90]
cdq
cmp edx, dword [esp + 4]
jne 0x46a4f4
cmp eax, dword [esp]
pop edx
pop eax
jae 0x46a7dc
jmp 0x46a4fc
pop edx
pop eax
jge 0x46a7dc
mov byte [ebx + 0x98], 0
lea eax, [ebp - 0x1c]
mov edx, dword [ebx + 0x40]
call fcn.00405df0
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, 0x46a80c
call fcn.00405e1c
push 0
push 0
push 0x11
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
push 0x46a81c
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
push ebp
push 0x46a7c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe1c]
call fcn.00417ce4
mov edi, eax
cmp dword [edi + 8], 0
jne 0x46a631
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb4]
mov edx, dword [eax + 0x8c]
mov eax, dword [eax + 0x88]
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0xe34]
jne 0x46a5a9
cmp eax, dword [ecx + 0xe30]
jne 0x46a5a9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe1c]
call fcn.00417d48
mov dword [ebp - 8], 0xff0002
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46a7dc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xb4]
cmp byte [ebx + 0x98], 0
jne 0x46a604
mov byte [ebx + 0x98], 1
mov eax, dword [ebp - 4]
mov dword [ebx + 0x94], eax
lea eax, [ebp - 0x1c]
mov edx, dword [ebx + 0x40]
call fcn.00405df0
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, 0x46a80c
call fcn.00405e1c
push 0
push 0
push 0x17
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
push 0
push 1
push 0x11
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xe38]
mov dword [eax + 0xe30], ecx
mov ecx, dword [edx + 0xe3c]
mov dword [eax + 0xe34], ecx
push 0x46a848
call sub.kernel32.dll_OutputDebugStringA
jmp 0x46a7ba
xor edx, edx
mov eax, edi
call fcn.00417920
mov ebx, eax
xor edx, edx
mov eax, edi
call int.00417810
cmp dword [ebx + 0x14], 0
jle 0x46a6c9
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 8]
mov dword [eax + 0xe30], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 0xe34], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xe34]
mov eax, dword [eax + 0xe30]
push edx
push eax
mov eax, dword [ecx + 0x88]
mov edx, dword [ecx + 0x8c]
cmp edx, dword [esp + 4]
jne 0x46a695
cmp eax, dword [esp]
pop edx
pop eax
jae 0x46a6b4
jmp 0x46a699
pop edx
pop eax
jge 0x46a6b4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xe30]
mov dword [ecx + 0x88], edx
mov edx, dword [eax + 0xe34]
mov dword [ecx + 0x8c], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 8]
mov dword [eax + 0xe40], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 0xe44], edx
cmp dword [ebx + 0x14], 0
jg 0x46a702
push 0x46a868
call sub.kernel32.dll_OutputDebugStringA
mov eax, ebx
call fcn.00402a78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe1c]
call fcn.00417d48
mov dword [ebp - 8], 0xff0001
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46a7dc
push 0
push 0
push 0
mov eax, esi
call fcn.00405dd8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa8]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
cmp dword [esi], 0
jne 0x46a746
mov eax, ebx
call fcn.00402a78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe1c]
call fcn.00417d48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46a7dc
test byte [ebx + 0x10], 1
je 0x46a756
push 0xffffffffffffffff
mov eax, dword [esi]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
push 0
push 0x2710
mov eax, dword [ebx + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.004051d8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [esi]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x18]
call fcn.00402c68
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00402a78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46a7ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe1c]
call fcn.00417d48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a801
lea eax, [ebp - 0x20]
call fcn.00405dd8
lea eax, [ebp - 0x1c]
call fcn.00405dd8
ret