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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcf4
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x38]
mov ebx, dword [eax + 0x48]
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
test edi, edi
je 0x1013d12a
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1013d12a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x1013d12a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0xcf0]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0xffffffff
mov dword [esi + 0x48], 0x2000
mov dword [esi + 0x4c], 0xffffffff
mov dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x54], 0xffffffff
mov dword [esi + 0x58], 0
call fcn.1012d560
mov eax, dword [0x103280d8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x5c]
movsx eax, byte [eax + 0xc]
push eax
call edx
push eax
lea ecx, [ebp - 0xcf0]
call fcn.1012d240
mov eax, dword [ebx + 0x24]
xor ecx, ecx
mov edx, dword [ebx + 0x20]
sub eax, edx
sar eax, 2
mov dword [ebp - 4], ecx
test eax, eax
je 0x1013d368
mov ecx, dword [edx + ecx*4]
mov eax, dword [ebx + 0x14]
add ecx, dword [ebx + 0x18]
dec eax
and ecx, eax
mov eax, dword [ebx + 0x10]
mov edi, dword [eax + ecx*4]
cmp byte [edi + 0x54], 0
jne 0x1013d34e
cmp dword [ebp - 4], 0
lea eax, [edi + 0x50]
mov dword [ebp - 8], eax
jle 0x1013d1f3
movss xmm1, dword [eax]
call fcn.1012c2c0
test al, al
je 0x1013d34e
cmp byte [edi + 0x5c], 0
jne 0x1013d34e
cmp byte [edi + 0xcdc], 0
je 0x1013d34e
jmp 0x1013d1f6
mov dword [ebp - 8], eax
mov eax, dword [0x103280d8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x5c]
movsx eax, byte [eax + 0xc]
push eax
call edx
push eax
mov ecx, edi
call fcn.1012d330
mov eax, dword [0x103280d8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x5c]
movsx eax, byte [eax + 0xc]
push eax
call edx
mov ecx, dword [eax + 0x670]
mov dword [edi + 0xcd8], ecx
lea ecx, [edi + 0x378]
mov dword [eax + 0x670], ecx
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp - 4]
push dword [eax + ecx*4]
mov ecx, esi
push edi
call fcn.1013cb50
mov eax, dword [0x103280d8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x5c]
movsx eax, byte [eax + 0xc]
push eax
call edx
mov ecx, dword [edi + 0xcd8]
lea edx, [esi + 0x78]
mov dword [eax + 0x670], ecx
mov dword [edi + 0xcd8], 0
mov edi, dword [edx]
cmp edi, 0xffffffff
je 0x1013d2ce
mov eax, dword [0x103280d8]
mov ecx, dword [ebp - 8]
mov eax, dword [eax]
movss xmm0, dword [ecx]
divss xmm0, dword [eax + 0x1c]
addss xmm0, dword [0x102cd2ac]
cvttss2si eax, xmm0
mov dword [esi + 0x80], eax
cmp edi, dword [esi + 0x50]
je 0x1013d2bf
cmp edi, 0xc
je 0x1013d368
mov eax, dword [esi + 0x7c]
cmp eax, dword [esi + 0x54]
jge 0x1013d368
lea edx, [esi + 0x78]
mov eax, dword [esi + 0x60]
test eax, eax
je 0x1013d2d9
lock inc dword [eax + 4]
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x38]
mov dword [esi + 0x38], ecx
mov ecx, edx
mov dword [esi + 0x34], eax
test edi, edi
je 0x1013d315
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1013d315
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea ecx, [esi + 0x78]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x1013d315
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [esi + 0x78]
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x74]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x78]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x64]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x68]
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x80]
mov dword [esi + 0x58], eax
mov dword [ecx], 0xffffffff
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 0x20]
inc ecx
sub eax, edx
mov dword [ebp - 4], ecx
sar eax, 2
cmp ecx, eax
jb 0x1013d1a1
mov eax, dword [0x103280d8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x5c]
movsx eax, byte [eax + 0xc]
push eax
call edx
push eax
lea ecx, [ebp - 0xcf0]
call fcn.1012d330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret