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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8bcdc0
push 0x7cd5e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x303c
call fcn.007c94b0
mov eax, dword [0x906980]
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 0x7d2702
cmp dword [ebp + 8], 3
jl 0x7d270a
or eax, 0xffffffff
jmp 0x7d2ab9
cmp dword [ebp + 8], 2
jne 0x7d27b4
push 0x906ab8
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test eax, eax
jle 0x7d27b4
cmp dword [0x9bad78], 0
jne 0x7d2772
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x302c], eax
cmp dword [ebp - 0x302c], 0
je 0x7d276a
push 0x8bcda4
mov ecx, dword [ebp - 0x302c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x9bad78], eax
cmp dword [0x9bad78], 0
jne 0x7d2772
or eax, 0xffffffff
jmp 0x7d2ab9
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 [0x9bad78]
add esp, 0x10
lea edx, [ebp - 0x1028]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x906ab8
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call fcn.007d2310
or eax, 0xffffffff
jmp 0x7d2ab9
cmp dword [ebp + 0x18], 0
je 0x7d27ee
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 0xfeb
lea edx, [ebp - 0x3028]
push edx
call fcn.007df530
add esp, 0x10
test eax, eax
jge 0x7d27ee
push str._CrtDbgReport:_String_too_long_or_IO_Error
lea eax, [ebp - 0x3028]
push eax
call fcn.007d0bd0
add esp, 8
cmp dword [ebp + 8], 2
jne 0x7d2826
cmp dword [ebp + 0x18], 0
je 0x7d2806
mov dword [ebp - 0x304c], str.Assertion_failed:
jmp 0x7d2810
mov dword [ebp - 0x304c], str.Assertion_failed_
mov ecx, dword [ebp - 0x304c]
push ecx
lea edx, [ebp - 0x2028]
push edx
call fcn.007d0bd0
add esp, 8
lea eax, [ebp - 0x3028]
push eax
lea ecx, [ebp - 0x2028]
push ecx
call fcn.007d0be0
add esp, 8
cmp dword [ebp + 8], 2
jne 0x7d2879
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x906abc]
and eax, 1
je 0x7d2865
push 0x8bcd18
lea ecx, [ebp - 0x2028]
push ecx
call fcn.007d0be0
add esp, 8
push 0x894304
lea edx, [ebp - 0x2028]
push edx
call fcn.007d0be0
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x7d28c1
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.007df440
add esp, 0x18
test eax, eax
jge 0x7d28bf
push str._CrtDbgReport:_String_too_long_or_IO_Error
lea ecx, [ebp - 0x1028]
push ecx
call fcn.007d0bd0
add esp, 8
jmp 0x7d28d7
lea edx, [ebp - 0x2028]
push edx
lea eax, [ebp - 0x1028]
push eax
call fcn.007d0bd0
add esp, 8
cmp dword [0x9c530c], 0
je 0x7d2988
push 0xf
call fcn.007d0fd0
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [0x9c530c]
mov dword [ebp - 0x3030], ecx
jmp 0x7d2912
mov edx, dword [ebp - 0x3030]
mov eax, dword [edx + 4]
mov dword [ebp - 0x3030], eax
cmp dword [ebp - 0x3030], 0
je 0x7d296f
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 0x7d296d
cmp dword [ebp + 8], 2
jne 0x7d294b
push 0x906ab8
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.007c514a
add esp, 8
mov eax, dword [ebp - 0x3050]
jmp 0x7d2ab9
jmp 0x7d2903
mov dword [ebp - 4], 0xffffffff
call fcn.007d297d
jmp 0x7d2988
cmp dword [0x9c5308], 0
je 0x7d29c6
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1028]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x9c5308]
add esp, 0xc
test eax, eax
je 0x7d29c6
cmp dword [ebp + 8], 2
jne 0x7d29be
push 0x906ab8
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [ebp - 0x20]
jmp 0x7d2ab9
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x906abc]
and edx, 1
je 0x7d2a13
mov eax, dword [ebp + 8]
cmp dword [eax*4 + 0x906ac8], 0xffffffff
je 0x7d2a13
push 0
lea ecx, [ebp - 0x3034]
push ecx
lea edx, [ebp - 0x1028]
push edx
call fcn.007d0cd0
add esp, 4
push eax
lea eax, [ebp - 0x1028]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x906ac8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x906abc]
and ecx, 2
je 0x7d2a2f
lea edx, [ebp - 0x1028]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x906abc]
and ecx, 4
je 0x7d2aa6
cmp dword [ebp + 0x10], 0
je 0x7d2a61
push 0xa
lea edx, [ebp - 0x3048]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.007df150
add esp, 0xc
mov dword [ebp - 0x3054], eax
jmp 0x7d2a6b
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.007d2ae0
add esp, 0x14
mov dword [ebp - 0x20], eax
cmp dword [ebp + 8], 2
jne 0x7d2aa1
push 0x906ab8
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [ebp - 0x20]
jmp 0x7d2ab9
cmp dword [ebp + 8], 2
jne 0x7d2ab7
push 0x906ab8
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.007d6cb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret