Function at 0x101a0f20
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 0x101a0f54
mov word [esi + 0x19], 0
xor eax, eax
cmp ax, word [esi + 0x10]
je 0x101a1378
cmp ax, word [esi + 0x12]
je 0x101a1378
cmp byte [ebx + 0x48], al
je 0x101a1256
call fcn.10194c00
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.10194c00
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.101a24e0
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x101a107a
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.101cedf0
test al, al
je 0x101a102b
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 0x101a120a
mov ecx, dword [esp + 0x44]
or edi, 0xffffffff
test ecx, ecx
je 0x101a1049
lea eax, [ecx + 4]
mov edx, edi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101a1049
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x44], 0
test ecx, ecx
je 0x101a106a
lea eax, [ecx + 4]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x101a106a
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 0x101a1380
mov edi, dword [esp + 0x38]
mov eax, edi
mov dword [esp + 0x24], eax
cmp byte [edi + 0x18], 0
je 0x101a10a7
push dword [edi + 0x28]
lea ecx, [eax + 8]
push dword [edi + 0x1c]
call fcn.10187820
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 0x101a1322
cmp dword [esp + 0x54], edx
jge 0x101a1322
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.101a0750
test al, al
je 0x101a1322
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 0x101a120a
cmp byte [ebx + 0x34], 4
jne 0x101a120a
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 0x101a1237
add eax, 4
mov edx, ecx
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101a1233
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 0x101a1256
lea eax, [edi + 4]
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x101a1256
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov al, byte [esi + 0x18]
cmp al, 3
je 0x101a1263
mov al, byte [ebx + 0x34]
mov byte [esi + 0x18], al
cmp byte [ebx + 0x48], 0
jne 0x101a1273
cmp dword [ebx + 0x40], 0
je 0x101a1383
cmp al, 3
jne 0x101a127b
mov byte [esi + 0x18], 1
cmp dword [ebx + 0x40], 0
je 0x101a1383
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.101a0990
lea eax, [esp + 0x94]
push eax
lea ecx, [ebx + 4]
call fcn.101a2a10
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 0x101a1383
mov edi, dword [esp + 0x5c]
cmp dword [esp + 0x54], edi
jge 0x101a106a
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x60]
jge 0x101a106a
lea ecx, [esp + 0x54]
call fcn.101a0750
test al, al
je 0x101a106a
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 0x101a1380
mov eax, dword [esp + 0x44]
or ecx, 0xffffffff
mov dword [esp + 0x28], eax
test eax, eax
je 0x101a134f
add eax, 4
mov edx, ecx
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101a134b
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 0x101a106a
lea eax, [edi + 4]
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x101a106a
mov eax, dword [edi]
mov ecx, edi
jmp 0x101a1067
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.102af935
mov esp, ebp
pop ebp
ret 4