Function at 0x40bfc0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x421574
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x4300b8]
xor eax, esp
mov dword [esp + 0x4c4], eax
push ebx
push esi
push edi
mov eax, dword [0x4300b8]
xor eax, esp
push eax
lea eax, [esp + 0x4d8]
mov dword fs:[0], eax
mov edi, dword [sym.imp.MSVCR90.dll__snwprintf]
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [0x4304b4]
lea edx, [eax + ecx*2]
push edx
push 0x425830
push str._s_s
lea eax, [esp + 0x2e0]
push 0xff
push eax
call edi
add esp, 0x14
cmp dword [0x430e50], 0
jne 0x40c1e2
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0xde]
push edx
mov word [esp + 0xe0], cx
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.00415a50
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__d__WARN___s_
lea eax, [esp + 0xe0]
push 0x100
push eax
call edi
add esp, 0x14
push 0x4257f4
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.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 esi, eax
mov dword [esp + 0x4e0], 0
lea ecx, [esp + 0xd4]
push ecx
lea ecx, [esp + 0xa0]
call dword [sym.imp.MSVCP90.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 [esp + 0x4e0], 1
push esi
push eax
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0xc
mov byte [esp + 0x4e0], 2
mov esi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
lea ecx, [esp + 0x2d4]
push ecx
push eax
lea edx, [esp + 0x34]
push edx
call esi
add esp, 0xc
mov byte [esp + 0x4e0], 3
push 0x425828
push eax
lea eax, [esp + 0x88]
push eax
call esi
add esp, 0xc
mov byte [esp + 0x4e0], 4
push 0x4257fc
push eax
lea ecx, [esp + 0x6c]
push ecx
call esi
add esp, 0xc
mov byte [esp + 0x4e0], 5
push 0x4257f8
push eax
lea edx, [esp + 0xc0]
push edx
call esi
add esp, 0xc
mov byte [esp + 0x4e0], 7
lea ecx, [esp + 0x64]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ebx, 8
mov byte [esp + 0x4e0], bl
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x4e0], 9
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x4e0], 0xa
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x4e0], 0xb
lea ecx, [esp + 0x9c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x4e0], 0xc
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0xbc]
cmp dword [esp + 0xd0], ebx
jae 0x40c1c1
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [esp + 0x4e0], 0xffffffff
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x40c24f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40c22f
mov edx, dword [esi + 0xc]
xor ecx, ecx
cmp dword [esi], ecx
sete cl
push ecx
push eax
push edx
call fcn.00417080
mov edx, dword [esi]
add esp, 0xc
push 1
push eax
push 0
push ecx
lea ecx, [esp + 0x2e4]
call fcn.00411ce0
add esp, 4
xor ecx, ecx
mov edx, eax
call fcn.00416620
mov eax, dword [0x430e50]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40c24f
mov ecx, dword [esi + 8]
mov edx, dword [esi]
push ecx
push ecx
lea ecx, [esp + 0x2dc]
call fcn.00411ce0
add esp, 4
mov ebx, eax
call fcn.0040bf30
add esp, 4
mov ecx, dword [esp + 0x4d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c4]
xor ecx, esp
call fcn.0041e4d2
add esp, 0x4d4
ret