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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451440
push 0x4309b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x303c
call fcn.0042cf80
mov eax, dword [0x457e80]
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 0x433152
cmp dword [ebp + 8], 3
jl 0x43315a
or eax, 0xffffffff
jmp 0x433509
cmp dword [ebp + 8], 2
jne 0x433204
push 0x458094
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
test eax, eax
jle 0x433204
cmp dword [0x45a144], 0
jne 0x4331c2
push str.user32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 0x302c], eax
cmp dword [ebp - 0x302c], 0
je 0x4331ba
push 0x451428
mov ecx, dword [ebp - 0x302c]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x45a144], eax
cmp dword [0x45a144], 0
jne 0x4331c2
or eax, 0xffffffff
jmp 0x433509
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 [0x45a144]
add esp, 0x10
lea edx, [ebp - 0x1028]
push edx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x458094
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
call fcn.004330b0
or eax, 0xffffffff
jmp 0x433509
cmp dword [ebp + 0x18], 0
je 0x43323e
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 0xfeb
lea edx, [ebp - 0x3028]
push edx
call fcn.0043e1b0
add esp, 0x10
test eax, eax
jge 0x43323e
push str._CrtDbgReport:_String_too_long_or_IO_Error
lea eax, [ebp - 0x3028]
push eax
call fcn.0042c700
add esp, 8
cmp dword [ebp + 8], 2
jne 0x433276
cmp dword [ebp + 0x18], 0
je 0x433256
mov dword [ebp - 0x304c], str.Assertion_failed:
jmp 0x433260
mov dword [ebp - 0x304c], str.Assertion_failed_
mov ecx, dword [ebp - 0x304c]
push ecx
lea edx, [ebp - 0x2028]
push edx
call fcn.0042c700
add esp, 8
lea eax, [ebp - 0x3028]
push eax
lea ecx, [ebp - 0x2028]
push ecx
call fcn.0042c710
add esp, 8
cmp dword [ebp + 8], 2
jne 0x4332c9
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x458098]
and eax, 1
je 0x4332b5
push 0x4513b0
lea ecx, [ebp - 0x2028]
push ecx
call fcn.0042c710
add esp, 8
push 0x450690
lea edx, [ebp - 0x2028]
push edx
call fcn.0042c710
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x433311
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 fcn.0043e0c0
add esp, 0x18
test eax, eax
jge 0x43330f
push str._CrtDbgReport:_String_too_long_or_IO_Error
lea ecx, [ebp - 0x1028]
push ecx
call fcn.0042c700
add esp, 8
jmp 0x433327
lea edx, [ebp - 0x2028]
push edx
lea eax, [ebp - 0x1028]
push eax
call fcn.0042c700
add esp, 8
cmp dword [0x45b864], 0
je 0x4333d8
push 0xf
call fcn.00431480
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [0x45b864]
mov dword [ebp - 0x3030], ecx
jmp 0x433362
mov edx, dword [ebp - 0x3030]
mov eax, dword [edx + 4]
mov dword [ebp - 0x3030], eax
cmp dword [ebp - 0x3030], 0
je 0x4333bf
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 0x4333bd
cmp dword [ebp + 8], 2
jne 0x43339b
push 0x458094
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 fcn.0042cd7a
add esp, 8
mov eax, dword [ebp - 0x3050]
jmp 0x433509
jmp 0x433353
mov dword [ebp - 4], 0xffffffff
call fcn.004333cd
jmp 0x4333d8
cmp dword [0x45b860], 0
je 0x433416
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1028]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x45b860]
add esp, 0xc
test eax, eax
je 0x433416
cmp dword [ebp + 8], 2
jne 0x43340e
push 0x458094
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
mov eax, dword [ebp - 0x20]
jmp 0x433509
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x458098]
and edx, 1
je 0x433463
mov eax, dword [ebp + 8]
cmp dword [eax*4 + 0x4580a4], 0xffffffff
je 0x433463
push 0
lea ecx, [ebp - 0x3034]
push ecx
lea edx, [ebp - 0x1028]
push edx
call fcn.0042dc40
add esp, 4
push eax
lea eax, [ebp - 0x1028]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x4580a4]
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x458098]
and ecx, 2
je 0x43347f
lea edx, [ebp - 0x1028]
push edx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x458098]
and ecx, 4
je 0x4334f6
cmp dword [ebp + 0x10], 0
je 0x4334b1
push 0xa
lea edx, [ebp - 0x3048]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00439170
add esp, 0xc
mov dword [ebp - 0x3054], eax
jmp 0x4334bb
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.00433530
add esp, 0x14
mov dword [ebp - 0x20], eax
cmp dword [ebp + 8], 2
jne 0x4334f1
push 0x458094
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
mov eax, dword [ebp - 0x20]
jmp 0x433509
cmp dword [ebp + 8], 2
jne 0x433507
push 0x458094
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.0042c800
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret