Function at 0x1020c610
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10268438
push sym.MSVCR71D.dll__except_handler3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x303c
call fcn.10201a90
mov eax, dword [0x1027c570]
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
mov byte [ebp - 0x2028], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x2027]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x1028], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1027]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x3028], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x3027]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jl 0x1020c6a2
cmp dword [ebp + 8], 3
jl 0x1020c6aa
or eax, 0xffffffff
jmp 0x1020ca59
cmp dword [ebp + 8], 2
jne 0x1020c754
push sym.MSVCR71D.dll__crtAssertBusy
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test eax, eax
jle 0x1020c754
cmp dword [0x1027f03c], 0
jne 0x1020c712
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x302c], eax
cmp dword [ebp - 0x302c], 0
je 0x1020c70a
push str.wsprintfA
mov ecx, dword [ebp - 0x302c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1027f03c], eax
cmp dword [0x1027f03c], 0
jne 0x1020c712
or eax, 0xffffffff
jmp 0x1020ca59
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.Second_Chance_Assertion_Failed:_File__s__Line__d_n
lea ecx, [ebp - 0x1028]
push ecx
call dword [0x1027f03c]
add esp, 0x10
lea edx, [ebp - 0x1028]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push sym.MSVCR71D.dll__crtAssertBusy
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call sym.MSVCR71D.dll__CrtDbgBreak
or eax, 0xffffffff
jmp 0x1020ca59
cmp dword [ebp + 0x18], 0
je 0x1020c78e
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 0xfeb
lea edx, [ebp - 0x3028]
push edx
call sym.MSVCR71D.dll__vsnprintf
add esp, 0x10
test eax, eax
jge 0x1020c78e
push str._CrtDbgReport:_String_too_long_or_IO_Error
lea eax, [ebp - 0x3028]
push eax
call sym.MSVCR71D.dll__mbscpy
add esp, 8
cmp dword [ebp + 8], 2
jne 0x1020c7c6
cmp dword [ebp + 0x18], 0
je 0x1020c7a6
mov dword [ebp - 0x304c], str.Assertion_failed:
jmp 0x1020c7b0
mov dword [ebp - 0x304c], str.Assertion_failed_
mov ecx, dword [ebp - 0x304c]
push ecx
lea edx, [ebp - 0x2028]
push edx
call sym.MSVCR71D.dll__mbscpy
add esp, 8
lea eax, [ebp - 0x3028]
push eax
lea ecx, [ebp - 0x2028]
push ecx
call sym.MSVCR71D.dll__mbscat
add esp, 8
cmp dword [ebp + 8], 2
jne 0x1020c819
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x1027c54c]
and eax, 1
je 0x1020c805
push 0x102683b0
lea ecx, [ebp - 0x2028]
push ecx
call sym.MSVCR71D.dll__mbscat
add esp, 8
push 0x102678cc
lea edx, [ebp - 0x2028]
push edx
call sym.MSVCR71D.dll__mbscat
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x1020c861
lea eax, [ebp - 0x2028]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._s__d__:__s
push 0x1000
lea eax, [ebp - 0x1028]
push eax
call sym.MSVCR71D.dll__snprintf
add esp, 0x18
test eax, eax
jge 0x1020c85f
push str._CrtDbgReport:_String_too_long_or_IO_Error
lea ecx, [ebp - 0x1028]
push ecx
call sym.MSVCR71D.dll__mbscpy
add esp, 8
jmp 0x1020c877
lea edx, [ebp - 0x2028]
push edx
lea eax, [ebp - 0x1028]
push eax
call sym.MSVCR71D.dll__mbscpy
add esp, 8
cmp dword [0x1027f920], 0
je 0x1020c928
push 0xf
call sym.MSVCR71D.dll__lock
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [0x1027f920]
mov dword [ebp - 0x3030], ecx
jmp 0x1020c8b2
mov edx, dword [ebp - 0x3030]
mov eax, dword [edx + 4]
mov dword [ebp - 0x3030], eax
cmp dword [ebp - 0x3030], 0
je 0x1020c90f
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1028]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x3030]
call dword [ecx + 0xc]
add esp, 0xc
test eax, eax
je 0x1020c90d
cmp dword [ebp + 8], 2
jne 0x1020c8eb
push sym.MSVCR71D.dll__crtAssertBusy
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x3050], edx
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sym.MSVCR71D.dll__local_unwind2
add esp, 8
mov eax, dword [ebp - 0x3050]
jmp 0x1020ca59
jmp 0x1020c8a3
mov dword [ebp - 4], 0xffffffff
call fcn.1020c91d
jmp 0x1020c928
cmp dword [0x1027f91c], 0
je 0x1020c966
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1028]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x1027f91c]
add esp, 0xc
test eax, eax
je 0x1020c966
cmp dword [ebp + 8], 2
jne 0x1020c95e
push sym.MSVCR71D.dll__crtAssertBusy
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [ebp - 0x20]
jmp 0x1020ca59
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x1027c54c]
and edx, 1
je 0x1020c9b3
mov eax, dword [ebp + 8]
cmp dword [eax*4 + 0x1027c558], 0xffffffff
je 0x1020c9b3
push 0
lea ecx, [ebp - 0x3034]
push ecx
lea edx, [ebp - 0x1028]
push edx
call sym.MSVCR71D.dll_strlen
add esp, 4
push eax
lea eax, [ebp - 0x1028]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x1027c558]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x1027c54c]
and ecx, 2
je 0x1020c9cf
lea edx, [ebp - 0x1028]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x1027c54c]
and ecx, 4
je 0x1020ca46
cmp dword [ebp + 0x10], 0
je 0x1020ca01
push 0xa
lea edx, [ebp - 0x3048]
push edx
mov eax, dword [ebp + 0x10]
push eax
call sym.MSVCR71D.dll__itoa
add esp, 0xc
mov dword [ebp - 0x3054], eax
jmp 0x1020ca0b
mov dword [ebp - 0x3054], 0
lea ecx, [ebp - 0x3028]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x3054]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1020ca80
add esp, 0x14
mov dword [ebp - 0x20], eax
cmp dword [ebp + 8], 2
jne 0x1020ca41
push sym.MSVCR71D.dll__crtAssertBusy
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [ebp - 0x20]
jmp 0x1020ca59
cmp dword [ebp + 8], 2
jne 0x1020ca57
push sym.MSVCR71D.dll__crtAssertBusy
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x24]
call fcn.1020cd80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret