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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001af68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100272d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x14]
mov ebx, dword [ebp + 8]
test ecx, ecx
je 0x10007b2a
push ebx
call fcn.100090e0
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x50], 0
jne 0x10007daa
mov dword [ebp - 0x34], vtable.CStringBufferW.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
cmp dword [esi + 0x54], 0
je 0x10007bf1
mov eax, dword [esi + 0x28]
test eax, eax
je 0x10007b92
push dword [esi + 0x20]
lea ecx, [ebp - 0x34]
push eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
call fcn.10004b40
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov byte [ebp - 4], 1
push ecx
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.CStringBufferW.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10005680
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x18]
push edi
push 0x100224bc
lea ecx, [ebp - 0x34]
call fcn.10005040
mov byte [ebp - 4], 0
test edi, edi
je 0x10007cd0
push edi
call fcn.10009ff3
add esp, 4
jmp 0x10007cd0
mov eax, dword [esi + 0xcc]
cmp eax, 0x3e8
jge 0x10007c10
inc eax
mov dword [esi + 0xcc], eax
lea eax, [esi + 0x2c]
lea ecx, [ebp - 0x34]
jmp 0x10007cca
mov eax, dword [esi + 0x40]
inc dword [esi + 0xd0]
add eax, 0xfffffffc
push eax
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [esi + 0x3c]
mov dword [esi + 0xcc], 1
call fcn.10005230
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.10004c50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], vtable.CStringBufferW.0
test eax, eax
je 0x10007c5d
push eax
call fcn.10009ff3
add esp, 4
push 0x1002248c
lea ecx, [ebp - 0x34]
call fcn.10004ca0
push dword [esi + 0xd0]
lea ecx, [ebp - 0x34]
call fcn.10004d10
push 0x100224d0
lea ecx, [ebp - 0x34]
call fcn.10004ca0
mov eax, dword [esi + 0x40]
push 4
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [esi + 0x3c]
call fcn.10005230
mov byte [ebp - 4], 4
push dword [eax + 0xc]
lea ecx, [ebp - 0x34]
call fcn.10004ca0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], vtable.CStringBufferW.0
test eax, eax
je 0x10007cc4
push eax
call fcn.10009ff3
add esp, 4
lea eax, [ebp - 0x34]
lea ecx, [esi + 0x2c]
push eax
call fcn.10004c50
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x10007daa
cmp dword [ebp - 0x30], 0
je 0x10007da1
push ecx
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.10004a00
lea eax, [esi + 0x64]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10007d05
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x100224d4
lea eax, [ebp + 8]
push edi
push eax
mov dword [ebp + 8], 0
call fcn.1000b218
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
je 0x10007d8c
push 2
push 0
push eax
call fcn.1000b85a
add esp, 0xc
push dword [ebp + 8]
call fcn.1000bc32
mov ecx, dword [ebp + 8]
add esp, 4
test ecx, ecx
je 0x10007d8c
cmp eax, dword [esi + 0x4c]
jl 0x10007d71
push ecx
call fcn.1000b754
add esp, 4
lea eax, [ebp + 8]
push 0x100224dc
push edi
push eax
mov dword [ebp + 8], 0
call fcn.1000b218
mov ecx, dword [ebp + 8]
add esp, 0xc
test ecx, ecx
je 0x10007d8c
push ecx
push 1
push dword [ebp - 0x20]
push ebx
call fcn.1000b47e
push dword [ebp + 8]
call fcn.1000b754
add esp, 0x14
lea ecx, [ebp - 0x14]
call fcn.10008790
test ebx, ebx
je 0x10007da1
push ebx
call fcn.10009956
add esp, 4
push edi
call fcn.10009ff3
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4