Function at 0x468552
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.004a98b0
mov eax, dword [0x4dd52c]
and word [ebp - 0x1004], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
mov edx, 0x3ff
xor eax, eax
test esi, esi
mov ecx, edx
lea edi, [ebp - 0x1002]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2018], 1
stosw word es:[edi], ax
mov ebx, 0x800
je 0x4686c3
cmp dword [esi + 0x1dfa8], 1
jne 0x4686c3
mov eax, dword [esi + 0x1dfac]
test eax, eax
je 0x4686c3
cmp eax, 3
jb 0x4686c3
and word [ebp - 0x2004], 0
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x2002]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0x1e7f8]
push eax
push 0x40e5f0
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.00431bde
add esp, 0x10
cmp dword [esi + 0x1dfa8], 1
jne 0x4686c3
mov eax, dword [esi + 0x1dfac]
test eax, eax
je 0x4686c3
cmp eax, 3
jb 0x4686c3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
mov ecx, 0x400
lea edi, [ebp - 0x1004]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2004]
push eax
movzx eax, word [ebp - 0x2006]
push 0x40e5b0
push eax
movzx eax, word [ebp - 0x2008]
push eax
movzx eax, word [ebp - 0x200a]
push eax
movzx eax, word [ebp - 0x200c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4065a0
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.00431bde
add esp, 0x2c
cmp word [esi + 0x1dfa0], 1
lea eax, [ebp - 0x1004]
push eax
jne 0x4686a5
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4686c3
lea edi, [esi + 0x1dfa4]
push 0x4060a8
push dword [edi]
call dword [sym.imp.msvcrt.dll_fwprintf]
push dword [edi]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
lea eax, [esi + 0x1e7f8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x1e7f4], eax
jne 0x4687c7
cmp dword [esi + 0x1dfa8], 1
jne 0x4687bb
mov eax, dword [esi + 0x1dfac]
test eax, eax
je 0x4687bb
cmp eax, 3
jb 0x4687bb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
push 0x40e57c
mov ecx, 0x400
lea edi, [ebp - 0x1004]
rep stosd dword es:[edi], eax
movzx eax, word [ebp - 0x2006]
push 0x40e5b0
push eax
movzx eax, word [ebp - 0x2008]
push eax
movzx eax, word [ebp - 0x200a]
push eax
movzx eax, word [ebp - 0x200c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4065a0
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.00431bde
add esp, 0x2c
cmp word [esi + 0x1dfa0], 1
lea eax, [ebp - 0x1004]
push eax
jne 0x46879d
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4687bb
add esi, 0x1dfa4
push 0x4060a8
push dword [esi]
call dword [sym.imp.msvcrt.dll_fwprintf]
push dword [esi]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
and dword [ebp - 0x2018], 0
jmp 0x468891
cmp dword [esi + 0x1dfa8], 1
jne 0x468891
mov eax, dword [esi + 0x1dfac]
test eax, eax
je 0x468891
cmp eax, 3
jb 0x468891
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
push 0x40e54c
mov ecx, 0x400
lea edi, [ebp - 0x1004]
rep stosd dword es:[edi], eax
movzx eax, word [ebp - 0x2006]
push 0x40e5b0
push eax
movzx eax, word [ebp - 0x2008]
push eax
movzx eax, word [ebp - 0x200a]
push eax
movzx eax, word [ebp - 0x200c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4065a0
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.00431bde
add esp, 0x2c
cmp word [esi + 0x1dfa0], 1
lea eax, [ebp - 0x1004]
push eax
jne 0x468873
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x468891
add esi, 0x1dfa4
push 0x4060a8
push dword [esi]
call dword [sym.imp.msvcrt.dll_fwprintf]
push dword [esi]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2018]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 4