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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb4
mov eax, dword [0x1036a00c]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx]
push esi
call dword [eax + 8]
test byte [ebx + 0x36], 2
jne 0x101a0fe4
mov word [esi + 0x19], 0
xor eax, eax
cmp ax, word [esi + 0x10]
je 0x101a1408
cmp ax, word [esi + 0x12]
je 0x101a1408
cmp byte [ebx + 0x48], al
je 0x101a12e6
call fcn.10194c70
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x42]
mov dword [esp + 0x3c], 0xffffffff
mov al, 2
mov word [esp + 0x40], 0
xchg byte [ecx], al
mov byte [esp + 0x43], 0
call fcn.10194c70
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x4e]
mov dword [esp + 0x48], 0xffffffff
mov al, 2
mov word [esp + 0x4c], 0
xchg byte [ecx], al
lea eax, [esp + 0x6c]
mov byte [esp + 0x4f], 0
push eax
lea eax, [esp + 0x3c]
mov ecx, ebx
push eax
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.101a2570
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x101a110a
push 0
lea eax, [esp + 0x54]
push eax
push dword [ebx + 0x40]
lea eax, [esp + 0x78]
push 0
push eax
lea eax, [esp + 0x58]
push eax
call fcn.101cee90
test al, al
je 0x101a10bb
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
sub eax, ecx
mov edi, dword [esp + 0x38]
mov word [esi + 0x10], ax
mov eax, dword [esp + 0x60]
sub eax, edx
mov word [esi + 0x16], cx
mov word [esi + 0x14], dx
mov word [esi + 0x12], ax
jmp 0x101a129a
mov ecx, dword [esp + 0x44]
or edi, 0xffffffff
test ecx, ecx
je 0x101a10d9
lea eax, [ecx + 4]
mov edx, edi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101a10d9
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x44], 0
test ecx, ecx
je 0x101a10fa
lea eax, [ecx + 4]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x101a10fa
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov al, byte [ebx + 0x34]
jmp 0x101a1410
mov edi, dword [esp + 0x38]
mov eax, edi
mov dword [esp + 0x24], eax
cmp byte [edi + 0x18], 0
je 0x101a1137
push dword [edi + 0x28]
lea ecx, [eax + 8]
push dword [edi + 0x1c]
call fcn.10187890
mov ecx, edi
mov byte [edi + 0x18], 0
mov byte [ecx + 0x19], al
mov eax, ecx
mov edi, dword [esp + 0x38]
movss xmm0, dword [eax + 8]
sub esp, 8
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x30], xmm0
fld qword [esp + 0x30]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
mov ecx, dword [esp + 0x2c]
fstp qword [esp + 0x30]
movsd xmm0, qword [esp + 0x30]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 0xc]
cvtps2pd xmm0, xmm0
mov dword [esp + 0x58], eax
movzx eax, ax
mov dword [esp + 0x30], eax
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
movss xmm0, dword [eax + 0x10]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x2c]
movss xmm0, dword [eax + 0x14]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
mov eax, dword [esp + 0x60]
add esp, 8
fstp qword [esp + 0x30]
movsd xmm0, qword [esp + 0x30]
cvtpd2ps xmm0, xmm0
cvttss2si edx, xmm0
mov dword [esp + 0x5c], edx
cmp dword [esp + 0x50], eax
jge 0x101a13b2
cmp dword [esp + 0x54], edx
jge 0x101a13b2
mov ecx, dword [esp + 0x28]
movzx eax, cx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x28], eax
movzx eax, cx
lea ecx, [esp + 0x50]
mov dword [esp + 0x24], eax
call fcn.101a07e0
test al, al
je 0x101a13b2
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov word [esi + 0x16], dx
mov edx, dword [esp + 0x5c]
mov word [esi + 0x14], ax
movzx eax, cx
sub eax, dword [esp + 0x28]
movzx ecx, dx
sub ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
mov word [esi + 0x10], ax
mov word [esi + 0x12], cx
test ax, ax
je 0x101a129a
cmp byte [ebx + 0x34], 4
jne 0x101a129a
add eax, 2
mov word [esi + 0x10], ax
lea eax, [edx - 1]
mov word [esi + 0x16], ax
mov eax, dword [esp + 0x44]
or ecx, 0xffffffff
mov dword [esp + 0x28], eax
test eax, eax
je 0x101a12c7
add eax, 4
mov edx, ecx
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101a12c3
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov edi, dword [esp + 0x38]
mov dword [esp + 0x44], 0
test edi, edi
je 0x101a12e6
lea eax, [edi + 4]
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x101a12e6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov al, byte [esi + 0x18]
cmp al, 3
je 0x101a12f3
mov al, byte [ebx + 0x34]
mov byte [esi + 0x18], al
cmp byte [ebx + 0x48], 0
jne 0x101a1303
cmp dword [ebx + 0x40], 0
je 0x101a1413
cmp al, 3
jne 0x101a130b
mov byte [esi + 0x18], 1
cmp dword [ebx + 0x40], 0
je 0x101a1413
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.101a0a20
lea eax, [esp + 0x94]
push eax
lea ecx, [ebx + 4]
call fcn.101a2aa0
mov ecx, dword [ebx + 0x40]
lea edx, [esp + 0x94]
push 0
push edx
mov dword [esp + 0x74], 0
lea edx, [esp + 0x74]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x5c]
push edx
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x101a1413
mov edi, dword [esp + 0x5c]
cmp dword [esp + 0x54], edi
jge 0x101a10fa
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x60]
jge 0x101a10fa
lea ecx, [esp + 0x54]
call fcn.101a07e0
test al, al
je 0x101a10fa
mov eax, dword [esp + 0x54]
sub edi, eax
mov ecx, dword [esp + 0x58]
mov word [esi + 0x16], ax
mov eax, dword [esp + 0x60]
sub eax, ecx
mov word [esi + 0x14], cx
mov word [esi + 0x12], ax
mov al, byte [esp + 0x68]
mov word [esi + 0x10], di
jmp 0x101a1410
mov eax, dword [esp + 0x44]
or ecx, 0xffffffff
mov dword [esp + 0x28], eax
test eax, eax
je 0x101a13df
add eax, 4
mov edx, ecx
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101a13db
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov edi, dword [esp + 0x38]
mov dword [esp + 0x44], 0
test edi, edi
je 0x101a10fa
lea eax, [edi + 4]
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x101a10fa
mov eax, dword [edi]
mov ecx, edi
jmp 0x101a10f7
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov byte [esi + 0x18], al
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.102af9d5
mov esp, ebp
pop ebp
ret 4