Function at 0x10007350
Capabilities:
Create thread

Disassembly:
mov eax, dword [sym.logtext.dll_bAboutToExit]
sub esp, 8
test eax, eax
je 0x10007365
mov eax, 0xfffffffa
add esp, 8
ret
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.10005cc0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10007387
or eax, eax
add esp, 8
ret
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x100073b1
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.10005d50
add esp, 0xc
mov eax, 0xfffffffd
pop edi
add esp, 8
ret
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100073b6
sub eax, edx
push esi
mov esi, eax
cmp esi, 0x104
ja 0x100076e3
mov eax, dword [esp + 8]
push ebx
push eax
lea ecx, [eax + 0xc]
push ecx
add eax, 8
push eax
call fcn.10007df0
add esp, 0xc
call fcn.10005c90
mov ebx, eax
test ebx, ebx
jne 0x10007410
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.10005d50
add esp, 0xc
pop ebx
pop esi
or eax, 0xffffffff
pop edi
add esp, 8
ret
mov dword [ebx], 0
call fcn.100058c0
test eax, eax
mov dword [ebx + 0xc], eax
jne 0x10007449
push ebx
call fcn.10005c70
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.10005d50
add esp, 0x10
pop ebx
pop esi
or eax, 0xffffffff
pop edi
add esp, 8
ret
mov edx, dword [esp + 0xc]
push edx
push eax
call fcn.100058e0
add esp, 8
test eax, eax
mov eax, dword [ebx + 0xc]
jne 0x1000748e
push eax
call fcn.10005860
push ebx
mov dword [ebx + 0xc], eax
call fcn.10005c70
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.10005d50
add esp, 0x14
pop ebx
pop esi
or eax, 0xffffffff
pop edi
add esp, 8
ret
mov edx, dword [eax + 4]
test dl, 8
mov ecx, dword [eax + 0x1c]
je 0x100074c5
cmp byte [ecx], 0
je 0x100074b6
cmp byte [ecx + 0x27], 0
je 0x100074b6
cmp byte [ecx + 0x1b], 0
je 0x100074b6
cmp byte [ecx + 0x30], 0
je 0x100074b6
cmp byte [ecx + 0x37], 0
jne 0x100074de
push ecx
mov ecx, dword [eax]
push edx
push ecx
call fcn.100034e0
add esp, 0xc
jmp 0x100074de
push ecx
push edx
mov edx, dword [eax]
push edx
call fcn.100034e0
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 4]
add esp, 0xc
or ecx, 8
mov dword [eax + 4], ecx
inc esi
push esi
call fcn.1000bbc2
add esp, 4
test eax, eax
mov dword [ebx + 4], eax
je 0x100074fd
mov ecx, edi
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x100074f3
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x1000753e
mov eax, dword [0x1001ec2c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10007510
sub eax, edx
inc eax
push eax
call fcn.1000bbc2
add esp, 4
test eax, eax
mov dword [ebx + 8], eax
je 0x100075a1
mov ecx, dword [0x1001ec2c]
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x10007532
jmp 0x100075a1
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x48]
test eax, eax
jne 0x10007559
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10007550
sub eax, edx
inc eax
push eax
call fcn.1000bbc2
add esp, 4
test eax, eax
mov dword [ebx + 8], eax
je 0x100075a1
mov ecx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x48]
test ecx, ecx
je 0x10007593
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x48]
mov edx, dword [ebx + 8]
mov byte [ecx + edx], 0
jmp 0x100075a1
mov ecx, esi
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x10007597
mov eax, dword [ebx + 4]
test eax, eax
je 0x100076bc
mov eax, dword [ebx + 8]
test eax, eax
je 0x100076bc
mov eax, dword [ebx + 0xc]
or dword [eax + 4], 0x200
mov eax, dword [0x1001fdd0]
test eax, eax
jne 0x100075f1
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 4]
shr ecx, 0xc
push str.LogTextExQSignal
not ecx
and ecx, 1
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x1001fdd0], eax
je 0x1000761a
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx + 4]
test ch, 0x10
je 0x10007608
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x1001fdd0]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx + 4]
test dh, 0x20
je 0x1000761a
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + 4]
test ah, 0x40
je 0x10007645
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.10005d50
add esp, 0xc
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 8
ret
push ebx
call fcn.10002bb0
add esp, 4
push 0x1001fda0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1001fdcc]
test eax, eax
jne 0x10007682
push 0x1001fde0
push 0
push str.Logging_thread
push 0x100071b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1001fdcc], eax
push 0x1001fda0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.10005d50
mov esi, dword [0x1001fdd0]
add esp, 0xc
xor eax, eax
test esi, esi
setne al
pop ebx
pop esi
pop edi
dec eax
and eax, 0xfffffffb
add esp, 8
ret
push ebx
call fcn.10005c70
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.10005d50
add esp, 0x10
pop ebx
pop esi
or eax, 0xffffffff
pop edi
add esp, 8
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.10005d50
add esp, 0xc
pop esi
mov eax, 0xfffffffd
pop edi
add esp, 8
ret