Function at 0x100039e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100314d3
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x1003f6ec]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x1003f6ec]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x50]
test esi, esi
je 0x10003a2b
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x20], esi
mov dword [esp + 0x80], 0
cmp dword [edi + 0xac], 3
jne 0x10003aa2
mov ecx, dword [edi + 0xc0]
test ecx, ecx
je 0x10003a5a
mov eax, dword [ecx]
push 1
call dword [eax + 0x20]
mov dword [edi + 0xc0], 0
cmp byte [edi + 0xb0], 0
mov dword [edi + 0xac], 0
je 0x10003aa2
push dword [edi + 0xb8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x10003aa2
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], str.cannot_signal_event
call fcn.10015be7
push 0x1003bccc
lea eax, [esp + 0x38]
push eax
call fcn.1001891b
cmp byte [ebp + 8], 0
je 0x10003aac
push 0
jmp 0x10003ade
cmp byte [edi + 0xb0], 0
je 0x10003af5
cmp dword [edi + 0xac], 0
je 0x10003af5
mov ebx, dword [edi + 0xc0]
test ebx, ebx
je 0x10003adc
call fcn.1000baf0
mov esi, dword [ebx]
push edx
push eax
push dword [ebx + 0x1c]
mov ecx, ebx
push dword [ebx + 0x18]
call dword [esi + 0x14]
push 1
push dword [edi + 0xc0]
mov ecx, edi
call fcn.100041c0
mov dword [edi + 0xac], 3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
mov ecx, dword [edi + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x10003e7d
mov ecx, dword [edi + 0x80]
mov eax, dword [edi + 0x84]
sub eax, ecx
sar eax, 2
test eax, eax
jle 0x10003e7d
cmp byte [edi + 0x6a], 0
je 0x10003b37
cmp byte [edi + 0x6b], 0
je 0x10003ea7
test eax, eax
je 0x10003f47
mov ebx, dword [ecx]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
mov byte [esp + 0x80], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
mov esi, eax
lea ecx, [ebx + 4]
cmp esi, 0xffffffff
jne 0x10003b8b
lea eax, [esp + 0x40]
cmp eax, ecx
je 0x10003d9f
push esi
push 0
push ecx
mov ecx, eax
call fcn.10001b70
jmp 0x10003d9f
cmp esi, 0xfffffffb
jne 0x10003bcd
lea eax, [esp + 0x40]
cmp eax, ecx
je 0x10003ba4
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.10001b70
mov ecx, dword [edi + 0x8c]
test ecx, ecx
je 0x10003bbf
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov dword [edi + 0x8c], 0
mov eax, dword [ebx + 0x20]
mov dword [edi + 0x8c], eax
jmp 0x10003d9f
lea eax, [esi - 0x3e9]
cmp eax, 0x3e6
ja 0x10003c58
mov ecx, dword [edi + 0x8c]
test ecx, ecx
je 0x10003bf5
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov dword [edi + 0x8c], 0
mov ebx, dword [edi + 0x40]
cmp esi, 0x3e9
jne 0x10003c34
push 0x2c
call fcn.10015ad8
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x80], 2
test eax, eax
je 0x10003c24
push ebx
mov ecx, eax
call fcn.100028c0
jmp 0x10003c26
xor eax, eax
mov byte [esp + 0x80], 1
mov dword [edi + 0x8c], eax
mov eax, dword [edi + 0x8c]
add eax, 8
lea ecx, [esp + 0x40]
cmp ecx, eax
je 0x10003d9f
push 0xffffffffffffffff
push 0
push eax
call fcn.10001b70
jmp 0x10003d9f
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x44]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x38], 0
call fcn.10001360
test al, al
jne 0x10003d1d
lea eax, [esp + 0x40]
push eax
mov edx, str.ERROR_AT:
lea ecx, [esp + 0x5c]
call fcn.100059e0
add esp, 4
mov byte [esp + 0x80], 3
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x3c]
mov byte [esp + 0x80], 1
cmp dword [esp + 0x6c], 0x10
jb 0x10003cbb
push dword [esp + 0x58]
call fcn.10015a88
add esp, 4
mov eax, dword [edi + 0x84]
sub eax, dword [edi + 0x80]
sar eax, 2
test eax, eax
je 0x10003e49
mov esi, dword [edi + 0x80]
cmp esi, dword [edi + 0x84]
je 0x10003e49
cmp byte [edi + 0x7c], 0
je 0x10003cf8
cmp dword [esi], 0
je 0x10003cf8
mov eax, dword [edi + 0x78]
push esi
lea ecx, [edi + 0x78]
call dword [eax]
mov eax, dword [edi + 0x84]
lea ecx, [esi + 4]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push esi
call fcn.100152e0
add esp, 0xc
add dword [edi + 0x84], 0xfffffffc
jmp 0x10003e49
lea eax, [esi + 4]
cmp eax, 2
jbe 0x10003d33
mov eax, dword [edi]
push esi
mov eax, dword [eax + 0x44]
mov ecx, edi
call eax
test al, al
je 0x10003d9f
push 0
push 0x100407d4
push 0x10040748
push 0
push ebx
call fcn.10030155
add esp, 0x14
push dword [edi + 0x40]
mov ebx, eax
push ebx
push esi
mov ecx, edi
call fcn.10004290
mov dword [edi + 0xc0], eax
test eax, eax
je 0x10003f30
mov ecx, dword [edi + 0x18]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0xc0]
push ebx
mov eax, dword [ecx]
call dword [eax]
mov ebx, dword [edi + 0xc0]
test ebx, ebx
je 0x10003d95
call fcn.1000baf0
mov esi, dword [ebx]
push edx
push eax
mov ecx, ebx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
call dword [esi + 0xc]
mov dword [edi + 0xac], 2
mov eax, dword [edi]
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call dword [eax + 0x3c]
cmp dword [esp + 0x54], 0x10
mov ecx, dword [edi + 0x34]
lea edx, [esp + 0x40]
cmovae edx, dword [esp + 0x40]
test ecx, ecx
je 0x10003dd8
test edx, edx
je 0x10003dd8
mov esi, dword [esp + 0x50]
test esi, esi
jle 0x10003dd8
mov eax, dword [ecx]
push 0x3e8
push esi
push edx
call dword [eax + 0x14]
cmp byte [edi + 0x6a], 0
je 0x10003ded
call fcn.1000baf0
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], edx
mov byte [edi + 0x6b], 0
mov eax, dword [edi + 0x84]
sub eax, dword [edi + 0x80]
sar eax, 2
test eax, eax
je 0x10003e42
mov esi, dword [edi + 0x80]
cmp esi, dword [edi + 0x84]
je 0x10003e42
cmp byte [edi + 0x7c], 0
je 0x10003e22
cmp dword [esi], 0
je 0x10003e22
mov eax, dword [edi + 0x78]
push esi
lea ecx, [edi + 0x78]
call dword [eax]
mov eax, dword [edi + 0x84]
lea ecx, [esi + 4]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push esi
call fcn.100152e0
add esp, 0xc
add dword [edi + 0x84], 0xfffffffc
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
mov byte [esp + 0x80], 0
cmp dword [esp + 0x54], 0x10
jb 0x10003e64
push dword [esp + 0x40]
call fcn.10015a88
add esp, 4
mov ecx, dword [edi + 0x80]
mov eax, dword [edi + 0x84]
sub eax, ecx
sar eax, 2
test eax, eax
jg 0x10003b27
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.100152c3
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x70], 0xffffd8f1
jne 0x10003eb6
cmp dword [edi + 0x74], 0xffffffff
je 0x10003e7d
call fcn.1000baf0
mov esi, dword [edi + 0x74]
mov ecx, dword [edi + 0x70]
cmp esi, edx
jg 0x10003ed9
jl 0x10003ecb
cmp ecx, eax
jae 0x10003ed9
sub eax, ecx
sbb edx, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
jmp 0x10003ee5
sub ecx, eax
sbb esi, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
fild qword [esp + 0x14]
fstp qword [esp + 0x24]
fld qword [esp + 0x24]
fstp qword [esp + 0x24]
movsd xmm1, qword [esp + 0x24]
divsd xmm1, qword [0x10038a08]
divsd xmm1, qword [0x10038a08]
comisd xmm1, xmmword [0x10038a00]
jbe 0x10003e7d
mov byte [edi + 0x6b], 1
mov dword [edi + 0x70], 0xffffd8f1
mov dword [edi + 0x74], 0xffffffff
jmp 0x10003e7d
push 0x1003bc68
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], str.Create_CurSPExecutor_failed_
call fcn.1001891b
push str.invalid_vector_T__subscript
call fcn.10014a64
int3