Function at 0x406666
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x412176
call fcn.004114d0
sub esp, 0x904
mov eax, dword [0x4211a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x14], eax
mov eax, dword [0x4211d4]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x406726
cmp dword [0x421b88], ebx
jne 0x406726
push ebx
add eax, 0xc
push eax
lea ecx, [ebp - 0x830]
call fcn.00401733
mov dword [ebp - 4], 0x11
push 1
push ebx
push ebx
push dword [esi + 0x10]
push ebx
push dword [esi]
push dword [esi + 4]
call fcn.00405b88
pop ecx
pop ecx
mov ecx, eax
call fcn.0040611a
cmp dword [ebp + 0x18], ebx
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jne 0x406703
mov eax, dword [0x4211d4]
add eax, 0xc
push eax
call edi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x830], ebx
je 0x4068c3
push dword [ebp - 0x830]
call edi
mov dword [ebp - 0x830], ebx
jmp 0x4068c3
mov word [ebp - 0x810], bx
xor eax, eax
mov ecx, 0x1ff
lea edi, [ebp - 0x80e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00401a6a
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x414864
lea eax, [ebp - 0x810]
push 0x100
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x14
push dword [esi + 0x10]
lea ecx, [ebp - 0x8d8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov edi, eax
mov dword [ebp - 4], ebx
push 0x414860
lea ecx, [ebp - 0x8a0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ebx, eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x868]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 2
push ebx
push eax
lea eax, [ebp - 0x8bc]
push eax
call fcn.00401fc6
mov byte [ebp - 4], 3
push dword [esi + 4]
push eax
lea eax, [ebp - 0x84c]
push eax
call fcn.00402078
mov byte [ebp - 4], 4
push 0x415f9c
push eax
lea eax, [ebp - 0x884]
push eax
call fcn.00402078
mov byte [ebp - 4], 5
push edi
push eax
lea eax, [ebp - 0x910]
push eax
call fcn.00401fc6
mov byte [ebp - 4], 6
push 0x415f70
push eax
lea eax, [ebp - 0x8f4]
push eax
call fcn.00402078
mov byte [ebp - 4], 7
push 0x415f6c
push eax
lea eax, [ebp - 0x82c]
push eax
call fcn.00402078
add esp, 0x48
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x8f4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x910]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x884]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x84c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x8bc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x868]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x8a0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x8d8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x82c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x82c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113e5
leave
ret 0x1c