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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c028
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x1004f430]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x14]
mov ebx, dword [ebp + 8]
test ecx, ecx
je 0x1000e27a
push ebx
call fcn.10012840
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [edi + 0x50], 0
jne 0x1000e5aa
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 [edi + 0x54], 0
je 0x1000e341
mov eax, dword [edi + 0x28]
test eax, eax
je 0x1000e2e2
push dword [edi + 0x20]
lea ecx, [ebp - 0x34]
push eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
call fcn.100077c0
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.10008240
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x18]
push esi
push 0x10046acc
lea ecx, [ebp - 0x34]
call fcn.10007c00
mov byte [ebp - 4], 0
test esi, esi
je 0x1000e4c9
push esi
call fcn.1002354a
add esp, 4
jmp 0x1000e4c9
mov eax, dword [edi + 0xcc]
cmp eax, 0x3e8
jge 0x1000e366
inc eax
mov dword [edi + 0xcc], eax
lea eax, [edi + 0x2c]
push eax
lea ecx, [ebp - 0x34]
call fcn.100078d0
jmp 0x1000e4c9
mov eax, dword [edi + 0x40]
inc dword [edi + 0xd0]
add eax, 0xfffffffc
push eax
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x3c]
mov dword [edi + 0xcc], 1
call fcn.10007df0
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.100078d0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.100075d0
cmp dword [ebp - 0x28], 0
lea ecx, [ebp - 0x34]
jne 0x1000e3bb
push 1
push 0x10046a9c
call fcn.100077c0
jmp 0x1000e3ea
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.10007b10
test eax, eax
je 0x1000e3ea
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
sub eax, esi
push 0x10046a9c
push eax
mov eax, dword [ebp - 0x28]
lea eax, [eax + esi*2]
push eax
call fcn.10023e83
add esp, 0xc
inc esi
mov dword [ebp - 0x30], esi
push dword [edi + 0xd0]
lea ecx, [ebp - 0x34]
call fcn.10007920
cmp dword [ebp - 0x28], 0
lea ecx, [ebp - 0x34]
jne 0x1000e40f
push 1
push 0x10046ae0
call fcn.100077c0
jmp 0x1000e43d
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.10007b10
test eax, eax
je 0x1000e43d
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
sub eax, ecx
push 0x10046ae0
push eax
mov eax, dword [ebp - 0x28]
lea eax, [eax + ecx*2]
push eax
call fcn.10023e83
add esp, 0xc
inc dword [ebp - 0x30]
mov eax, dword [edi + 0x40]
push 4
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x3c]
call fcn.10007df0
mov byte [ebp - 4], 4
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x1000e4ae
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1000e462
sub esi, ecx
sar esi, 1
cmp dword [ebp - 0x28], 0
lea ecx, [ebp - 0x34]
jne 0x1000e483
push esi
push ebx
call fcn.100077c0
jmp 0x1000e4ae
mov eax, dword [ebp - 0x30]
add eax, esi
push eax
call fcn.10007b10
test eax, eax
je 0x1000e4ae
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
sub eax, ecx
push ebx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [eax + ecx*2]
push eax
call fcn.10023e83
add esp, 0xc
add dword [ebp - 0x30], esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.100075d0
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 0x2c]
call fcn.100078d0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x1000e5aa
cmp dword [ebp - 0x30], 0
jne 0x1000e4e0
push esi
jmp 0x1000e5a2
push ecx
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.10007680
lea eax, [edi + 0x64]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000e500
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp - 0x28]
push 0x10046ae4
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 0x14], 0
call fcn.10024a88
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
je 0x1000e58a
push 2
push 0
push eax
call fcn.1002529b
add esp, 0xc
push dword [ebp - 0x14]
call fcn.10025673
mov ecx, dword [ebp - 0x14]
add esp, 4
test ecx, ecx
je 0x1000e58a
cmp eax, dword [edi + 0x4c]
jl 0x1000e56f
push ecx
call fcn.10024fc4
add esp, 4
lea eax, [ebp - 0x14]
push 0x10046aec
push esi
push eax
mov dword [ebp - 0x14], 0
call fcn.10024a88
mov ecx, dword [ebp - 0x14]
add esp, 0xc
test ecx, ecx
je 0x1000e58a
push ecx
push 1
push dword [ebp - 0x20]
push ebx
call fcn.10024cee
push dword [ebp - 0x14]
call fcn.10024fc4
add esp, 0x14
lea ecx, [ebp + 8]
call fcn.1000f010
test ebx, ebx
je 0x1000e59f
push ebx
call fcn.10022a1f
add esp, 4
push dword [ebp - 0x28]
call fcn.1002354a
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