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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030a10
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x10046270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebx + 0x14]
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x1000e74d
push esi
call fcn.10018ef0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebx + 0x50], 0
jne 0x1000ead3
mov dword [ebp - 0x3c], vtable.CStringBufferW.0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
cmp dword [ebx + 0x54], 0
je 0x1000e821
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x1000e7b5
push dword [ebx + 0x20]
lea ecx, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
call fcn.1000a470
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov byte [ebp - 4], 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], vtable.CStringBufferW.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.1000b0d0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x20]
push esi
push 0x1003b300
lea ecx, [ebp - 0x3c]
call fcn.1000a950
mov dword [ebp - 0x2c], vtable.CStringBufferW.0
mov byte [ebp - 4], 3
test esi, esi
je 0x1000e812
push esi
call fcn.1001df51
add esp, 4
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x38]
jmp 0x1000e967
mov eax, dword [ebx + 0xcc]
cmp eax, 0x3e8
jge 0x1000e84c
inc eax
mov dword [ebx + 0xcc], eax
lea eax, [ebx + 0x2c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1000a580
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x38]
jmp 0x1000e967
mov eax, dword [ebx + 0x40]
inc dword [ebx + 0xd0]
add eax, 0xfffffffc
push eax
push 0
lea eax, [ebp - 0x2c]
lea ecx, [ebx + 0x3c]
push eax
mov dword [ebx + 0xcc], 1
call fcn.1000ab40
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.1000a580
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.1000a240
cmp dword [ebp - 0x30], 0
lea ecx, [ebp - 0x3c]
jne 0x1000e8a1
push 1
push 0x1003b2d0
call fcn.1000a470
jmp 0x1000e8d0
mov eax, dword [ebp - 0x38]
inc eax
push eax
call fcn.1000a840
test eax, eax
je 0x1000e8d0
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
sub eax, esi
push 0x1003b2d0
push eax
mov eax, dword [ebp - 0x30]
lea eax, [eax + esi*2]
push eax
call fcn.1001e135
add esp, 0xc
inc esi
mov dword [ebp - 0x38], esi
push dword [ebx + 0xd0]
lea ecx, [ebp - 0x3c]
call fcn.1000a610
cmp dword [ebp - 0x30], 0
lea ecx, [ebp - 0x3c]
jne 0x1000ea47
push 1
push 0x1003b314
call fcn.1000a470
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
mov eax, dword [ebx + 0x40]
push 4
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebx + 0x3c]
call fcn.1000ab40
mov byte [ebp - 4], 5
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x1000e94f
mov ebx, ecx
lea edx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1000e925
sub ebx, edx
sar ebx, 1
test edi, edi
jne 0x1000ea7f
push ebx
push ecx
lea ecx, [ebp - 0x3c]
call fcn.1000a470
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.1000a240
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebx + 0x2c]
call fcn.1000a580
test edi, edi
je 0x1000eab8
test esi, esi
je 0x1000eab8
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.1000a330
lea eax, [ebx + 0x64]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000e998
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1003b318
lea eax, [ebp - 0x14]
push edi
push eax
mov dword [ebp - 0x14], 0
call fcn.1001eee5
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esp, 0xc
test eax, eax
je 0x1000ea1f
push 2
push 0
push eax
call fcn.1001f083
add esp, 0xc
push dword [ebp - 0x14]
call fcn.1001f45b
mov ecx, dword [ebp - 0x14]
add esp, 4
test ecx, ecx
je 0x1000ea1f
cmp eax, dword [ebx + 0x4c]
jl 0x1000ea04
push ecx
call fcn.1001f52f
add esp, 4
lea eax, [ebp - 0x14]
push 0x1003b320
push edi
push eax
mov dword [ebp - 0x14], 0
call fcn.1001eee5
mov ecx, dword [ebp - 0x14]
add esp, 0xc
test ecx, ecx
je 0x1000ea1f
push ecx
push 1
push dword [ebp - 0x28]
push esi
call fcn.1001f6fd
push dword [ebp - 0x14]
call fcn.1001f52f
add esp, 0x14
lea ecx, [ebp + 8]
call fcn.1000fe40
test esi, esi
je 0x1000ea34
push esi
call fcn.1001d3d0
add esp, 4
mov dword [ebp - 0x3c], vtable.CStringBufferW.0
mov dword [ebp - 4], 9
jmp 0x1000eaca
mov eax, dword [ebp - 0x38]
inc eax
push eax
call fcn.1000a840
test eax, eax
je 0x1000e8f7
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
sub eax, esi
push 0x1003b314
push eax
lea eax, [edi + esi*2]
push eax
call fcn.1001e135
add esp, 0xc
inc esi
mov dword [ebp - 0x38], esi
jmp 0x1000e8fd
lea eax, [esi + ebx]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1000a840
test eax, eax
je 0x1000e946
mov esi, dword [ebp - 0x38]
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
sub eax, esi
push eax
lea eax, [edi + esi*2]
push eax
call fcn.1001e135
add esp, 0xc
add esi, ebx
mov dword [ebp - 0x38], esi
jmp 0x1000e94c
mov dword [ebp - 0x3c], vtable.CStringBufferW.0
mov dword [ebp - 4], 6
test edi, edi
je 0x1000ead3
push edi
call fcn.1001df51
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