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

Disassembly:
push edi
push esi
mov al, byte [0x1017f1d9]
push 4
push 8
call fcn.10007540
add esp, 8
test eax, eax
je 0x1003ba26
mov esi, eax
mov edi, dword [esp + 0xc]
xor eax, eax
inc eax
mov dword [esi + 4], eax
mov dword [esi], eax
mov eax, dword [edi + 0x20]
test eax, eax
je 0x1003ba17
lock dec dword [eax]
jne 0x1003ba17
lea eax, [edi + 0x20]
push eax
call fcn.1001a22c
add esp, 4
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], 0x10108b18
mov eax, edi
pop esi
pop edi
ret
push 8
push 4
call fcn.10101000
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [esp + 0x74]
mov esi, dword [eax + 0x24]
test esi, esi
je 0x1003bacd
mov edx, dword [eax + 0x20]
mov ebp, dword [esp + 0x7c]
mov ecx, dword [ebp + 4]
mov eax, dword [ebp + 8]
mov edi, ecx
sub edi, eax
cmp esi, edi
cmovb edi, esi
mov esi, edi
add esi, eax
jb 0x1003bc86
cmp esi, ecx
ja 0x1003bc92
add eax, dword [ebp]
push edi
push edx
push eax
call fcn.100e9d70
add esp, 0xc
cmp dword [ebp + 0xc], esi
jae 0x1003ba83
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], esi
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 0x24]
mov ecx, eax
sub ecx, edi
jb 0x1003bc9e
mov dword [edx + 0x24], ecx
add dword [edx + 0x20], edi
add edx, 0x10
lea esi, [esp + 0x44]
push edi
push edx
push esi
call fcn.1008be8f
add esp, 0xc
cmp byte [esi], 5
je 0x1003bac1
lea ecx, [esp + 0x44]
call fcn.1002bcf7
mov esi, dword [esp + 0x70]
mov byte [esi], 4
jmp 0x1003bb5f
lea ebx, [eax + 0x10]
lea esi, [esp + 0x2c]
push dword [esp + 0x78]
push ebx
push esi
call fcn.1008be07
add esp, 0xc
mov al, byte [esi]
cmp al, 7
je 0x1003bb58
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
cmp al, 5
jne 0x1003bb69
mov dword [esp + 8], edi
mov edi, ebp
mov ebp, edx
test esi, esi
jne 0x1003bbd6
push ebx
call fcn.1008be85
add esp, 4
test al, al
jne 0x1003bbd6
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebp
xor ecx, ecx
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
push ecx
push ebp
lea eax, [esp + 0x58]
push eax
call dword [edi + 0xc]
add esp, 0xc
push dword [esp + 0x78]
push ebx
lea eax, [esp + 0x34]
push eax
call fcn.1008be07
add esp, 0xc
mov al, byte [esp + 0x2c]
jmp 0x1003bae4
mov esi, dword [esp + 0x70]
mov byte [esi], 5
mov eax, esi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, al
cmp ecx, 6
je 0x1003bac1
mov byte [esp + 0xc], al
lea eax, [esp + 0x2d]
mov ebx, edi
mov edi, eax
movzx eax, word [eax]
mov word [esp + 0xd], ax
mov al, byte [edi + 2]
mov byte [esp + 0xf], al
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
lea eax, [ecx - 1]
cmp eax, 2
jb 0x1003bbb6
test ecx, ecx
jne 0x1003bc11
mov ebp, edx
test ebp, ebp
je 0x1003bbc4
cmp ebp, 5
je 0x1003bc38
cmp ebp, 8
jne 0x1003bc11
mov esi, dword [esp + 0x70]
mov byte [esi], 4
lea ecx, [esp + 0xc]
call fcn.1002bcf7
jmp 0x1003bb5f
mov ebx, dword [esp + 0x74]
lea eax, [ebx + 0x2c]
push esi
push eax
call fcn.100692b8
add esp, 8
lea eax, [ebx + 0x28]
mov ecx, dword [ebx + 0x1c]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push eax
call dword [ecx + 0xc]
add esp, 0xc
mov edx, ebp
mov dword [ebx + 0x20], ebp
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x24], esi
mov eax, dword [esp + 8]
mov dword [ebx + 0x28], eax
jmp 0x1003ba48
movsd xmm0, qword [esp + 0x1c]
lea eax, [esp + 0x44]
movsd qword [eax + 0x10], xmm0
movups xmm0, xmmword [esp + 0xc]
movups xmmword [eax], xmm0
lea esi, [esp + 0x24]
push eax
push esi
call fcn.1005db1f
add esp, 8
jmp 0x1003bc5f
movsd xmm0, qword [esp + 0x1c]
lea eax, [esp + 0x44]
movsd qword [eax + 0x10], xmm0
movups xmm0, xmmword [esp + 0xc]
movups xmmword [eax], xmm0
lea esi, [esp + 0x24]
push eax
push 0xb
push esi
call fcn.10065396
add esp, 0xc
mov al, byte [esi]
mov ecx, dword [esi + 1]
mov dword [esp], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 3], ecx
mov esi, dword [esp + 0x70]
mov byte [esi], al
mov eax, dword [esp]
mov ecx, dword [esp + 3]
mov dword [esi + 1], eax
mov dword [esi + 4], ecx
jmp 0x1003bb5f
push 0x10108b48
push esi
push eax
call fcn.10101640
push 0x10108b48
push ecx
push esi
call fcn.10101620
lea ecx, [esp + 0x2c]
mov dword [ecx], eax
lea eax, [esp + 0x24]
lea edx, [esp + 0xc]
mov dword [edx], eax
mov eax, 0x1000134d
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
lea eax, [esp + 0x44]
mov dword [eax], 0x10108438
mov ecx, 2
mov dword [eax + 4], ecx
mov dword [eax + 0x10], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
push 0x10108448
push eax
call fcn.101011a0