Function at 0x1013d110
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
mov eax, dword [0x102514b8]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
push 0x60
mov dword [esp + 0x34], eax
lea eax, [esp + 0xa4]
push 0
push eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], esi
call fcn.10166d90
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0xa0], esi
movzx eax, word [eax]
cmp ax, 0x40
jle 0x1013d19c
push 0x40
push 0x1022e3d0
push esi
call fcn.100e18e0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.1016198b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
and ecx, 0x40
mov dword [esp + 0x5c], ecx
je 0x1013d1af
mov eax, 1
jmp 0x1013d1b0
cwde
mov ecx, dword [esi]
imul esi, eax, 0x58
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ecx
add esi, 0x3f
and esi, 0xfffffff8
lea edx, [esi + 0x264]
call fcn.100df8a0
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x1013d1ee
lea ecx, [esi + 0x264]
push ecx
push 0
push edx
call fcn.10166d90
mov edx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x38], 0
je 0x1013d215
mov ecx, eax
call fcn.100df640
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.1016198b
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [edx], eax
mov eax, dword [esp + 0x14]
mov dword [edx + 4], eax
call fcn.100fb5f0
mov ecx, dword [esp + 0xc]
push 0x104
mov dword [ecx + 0x18], eax
lea eax, [ecx + esi]
mov dword [esp + 0xa8], eax
mov dword [ecx + 0x20], eax
mov eax, dword [ebp + 0x14]
mov word [ecx + 0xa], ax
mov eax, dword [esp + 0x14]
movsd xmm0, qword [eax + 0x1b8]
lea eax, [ecx + 0x38]
movsd qword [ecx + 0x28], xmm0
mov ecx, 0
mov esi, dword [esp + 0xa8]
mov dword [esp + 0xd8], eax
add esi, 0x160
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
push ecx
push esi
mov dword [esp + 0x58], esi
test byte [eax + 0x34], 0x20
mov eax, dword [esp + 0x24]
cmovne eax, ecx
mov dword [esp + 0x24], eax
call fcn.10166d90
mov ecx, dword [esp + 0xb0]
add esp, 0xc
mov edx, dword [esp + 0x10]
lea eax, [ecx + 0x20]
mov dword [ecx], edx
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx + 4], esi
mov dword [ecx + 8], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 8
mov word [ecx + 0xe], ax
cmp dword [edx + 0x15c], 0
jne 0x1013d312
mov eax, dword [edx]
test byte [eax + 0x34], 8
jne 0x1013d312
mov dword [esp + 0x108], edx
lea ecx, [esp + 0x100]
mov edx, edi
mov dword [esp + 0x100], 0x1010fcd0
mov dword [esp + 0x104], 0
call fcn.10109b20
mov ecx, dword [esp + 0xa4]
mov edx, edi
push 0x45
call fcn.101375e0
add esp, 4
test edi, edi
je 0x1013d352
cmp dword [esp + 0x1c], 0
je 0x1013d33b
mov ecx, edi
call fcn.1010d290
test eax, eax
je 0x1013d352
mov eax, dword [esp + 0xc]
mov edx, edi
mov ecx, dword [esp + 0x10]
push 8
push dword [eax + 0x18]
call fcn.10110250
add esp, 8
mov eax, dword [esp + 0x14]
xor ecx, ecx
xor esi, esi
cmp cx, word [eax]
jge 0x1013d384
mov edi, dword [esp + 0x4c]
lea edx, [eax + 0x34]
mov ecx, dword [edi]
lea edx, [edx + 0x48]
mov eax, dword [edx - 0x48]
inc esi
mov dword [edi + ecx*4 + 4], eax
mov eax, dword [esp + 0x14]
inc dword [edi]
movsx eax, word [eax]
cmp esi, eax
jl 0x1013d366
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xa4]
mov esi, dword [edi + 0x10]
dec esi
js 0x1013d3ac
push esi
mov edx, edi
mov ecx, eax
call fcn.10138390
mov eax, dword [esp + 0x18]
add esp, 4
dec esi
jns 0x1013d391
mov edi, dword [esp + 0xa4]
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x38], 0
jne 0x1013d989
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1013d3e6
mov ecx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov edx, edi
call fcn.10138d80
add esp, 8
test eax, eax
je 0x1013d3ea
mov eax, dword [esp + 0xc]
xor esi, esi
mov byte [eax + 0xe], 1
jmp 0x1013d3ea
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc4], esi
xor esi, esi
mov dword [esp + 0xb8], 0xffffffff
mov dword [esp + 0xbc], 0xffffffff
mov dword [esp + 0xc0], eax
mov dword [esp + 0xd0], edx
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x38], esi
mov dword [esp + 0xcc], esi
mov dword [esp + 0x20], ecx
test edx, edx
jle 0x1013d9bf
movsd xmm0, qword [0x1022ee78]
lea ecx, [edx - 1]
xorps xmm2, xmm2
movsd qword [esp + 0x50], xmm0
or eax, 0xffffffff
movdqa xmmword [esp + 0x100], xmm2
mov dword [esp + 8], eax
movdqa xmmword [esp + 0x70], xmm2
movdqa xmmword [esp + 0x80], xmm2
movq qword [esp + 0x90], xmm2
mov dword [esp + 0x44], 0
cmp esi, ecx
jne 0x1013d49b
xor ecx, ecx
mov edx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], edx
jmp 0x1013d570
lea eax, [esi + esi*8]
mov dword [esp + 0x18], esi
lea edi, [edi + eax*8]
or ecx, 0xffffffff
add edi, 8
mov dword [esp + 0x48], ecx
mov dword [esp + 0xa8], edi
cmp esi, edx
jge 0x1013d55e
mov edi, edi
mov ecx, dword [esp + 0x4c]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
jle 0x1013d4de
mov esi, dword [edi + 0x2c]
add ecx, 4
cmp dword [ecx], esi
je 0x1013d514
inc eax
add ecx, 4
cmp eax, edx
jl 0x1013d4d2
xorps xmm0, xmm0
movlpd qword [esp + 0x60], xmm0
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
and ecx, dword [esp + 0xb8]
and edx, dword [esp + 0xbc]
mov esi, dword [esp + 0x38]
or ecx, edx
mov ecx, dword [esp + 0x18]
jne 0x1013d52b
cmp ecx, esi
jne 0x1013d541
inc esi
mov dword [esp + 0x38], esi
jmp 0x1013d541
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
jmp 0x1013d4ef
cmp ecx, esi
jle 0x1013d535
test byte [edi + 0x20], 0xa
jne 0x1013d55a
inc dword [esp + 0x48]
jne 0x1013d55a
test byte [edi + 0x20], 8
jne 0x1013d55a
inc ecx
add edi, 0x48
mov dword [esp + 0x18], ecx
mov dword [esp + 0xa8], edi
cmp ecx, dword [esp + 0x1c]
jl 0x1013d4c0
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 8]
mov edx, ecx
mov dword [esp + 0x3c], edx
test ecx, ecx
js 0x1013d822
movsd xmm1, qword [esp + 0x78]
movsd qword [esp + 0x68], xmm1
lea esp, [esp]
test eax, eax
jns 0x1013d828
mov edi, dword [esp + 0x14]
lea eax, [esi + esi*8]
mov ecx, esi
mov dword [esp + 0x24], ecx
lea edi, [edi + eax*8]
add edi, 8
mov dword [esp + 0xa8], edi
cmp esi, dword [esp + 0x1c]
jge 0x1013d7e5
mov edx, dword [esp + 0xc]
imul eax, esi, 0x58
sub edx, 0xffffff80
add eax, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
cmp ecx, esi
jle 0x1013d5ce
test byte [edi + 0x20], 0xa
jne 0x1013d7e5
mov ecx, dword [esp + 0x4c]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
jle 0x1013d5ec
mov esi, dword [edi + 0x2c]
add ecx, 4
cmp dword [ecx], esi
je 0x1013d62e
inc eax
add ecx, 4
cmp eax, edx
jl 0x1013d5e0
xorps xmm0, xmm0
movlpd qword [esp + 0x60], xmm0
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov ecx, edx
mov eax, esi
and ecx, dword [esp + 0xb8]
and eax, dword [esp + 0xbc]
or ecx, eax
je 0x1013d7f6
cmp dword [esp + 0x3c], 0
je 0x1013d645
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], esi
jmp 0x1013d661
xor edx, edx
xor esi, esi
bts edx, eax
cmp eax, 0x20
cmovae esi, edx
xor edx, esi
cmp eax, 0x40
cmovae esi, edx
jmp 0x1013d5fd
mov eax, dword [esp + 0xb8]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xb4], eax
cmp dword [edi + 0x44], 0
jne 0x1013d66b
inc dword [esp + 0x44]
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0xa0]
test byte [eax + 0x2a], 0x10
je 0x1013d690
mov esi, dword [esp + 0x18]
lea eax, [esi + 8]
mov dword [esp + 0xc8], eax
call fcn.10139e10
jmp 0x1013d699
call fcn.1013a600
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x1013d7a6
movsd xmm0, qword [esp + 0xf0]
movsd qword [esi], xmm0
movsd xmm0, qword [esp + 0xf0]
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0xfc]
and ecx, dword [esp + 0xb8]
and eax, dword [esp + 0xbc]
or ecx, eax
mov edi, dword [esp + 0xa8]
jne 0x1013d7cc
cmp dword [esp + 0x44], 0
je 0x1013d704
cmp dword [edi + 0x44], 0
je 0x1013d704
test dword [esp + 0xd8], 0x100f3000
je 0x1013d7cc
cmp dword [esp + 8], 0
jl 0x1013d745
movsd xmm2, qword [esp + 0x50]
comisd xmm2, xmm0
ja 0x1013d745
comisd xmm0, xmm2
ja 0x1013d7cc
mov ax, word [esp + 0xde]
cmp ax, word [esp + 0x76]
ja 0x1013d745
movsd xmm1, qword [esp + 0x68]
comisd xmm1, xmmword [esp + 0xe0]
jbe 0x1013d7d2
movdqu xmm0, xmmword [esp + 0xe8]
mov eax, dword [esp + 0x24]
movdqu xmm2, xmmword [esp + 0xd8]
mov dword [esp + 8], eax
movdqu xmmword [esp + 0x80], xmm0
movq xmm0, qword [esp + 0xf8]
movdqa xmmword [esp + 0x70], xmm2
movsd xmm1, qword [esp + 0x78]
movq qword [esp + 0x90], xmm0
movsd xmm0, qword [esp + 0x88]
movdqa xmmword [esp + 0x100], xmm2
movsd qword [esp + 0x50], xmm0
movsd qword [esp + 0x68], xmm1
jmp 0x1013d7db
cmp dword [esp + 0x48], 0
je 0x1013d6b2
movsd xmm0, qword [esp + 0xf0]
divsd xmm0, qword [esi]
movsd qword [esp + 0xf0], xmm0
jmp 0x1013d6bb
movsd xmm1, qword [esp + 0x68]
movdqa xmm2, xmmword [esp + 0x100]
test byte [edi + 0x20], 8
je 0x1013d7fa
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 8]
dec edx
mov dword [esp + 0x3c], edx
jns 0x1013d580
jmp 0x1013d828
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
add edi, 0x48
add dword [esp + 0x18], 0x58
inc ecx
mov esi, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov dword [esp + 0xa8], edi
cmp ecx, dword [esp + 0x1c]
jl 0x1013d5c0
jmp 0x1013d7e5
movsd xmm1, qword [esp + 0x78]
movd edi, xmm2
test edi, 0x40000000
je 0x1013d83c
mov ecx, dword [esp + 0xc]
mov byte [ecx + 0xe], 2
mov edx, dword [esp + 0x20]
lea ecx, [eax + eax*8]
mov esi, dword [esp + 0x14]
movq xmm0, qword [esp + 0x80]
and dword [esp + 0x40], edi
mov dword [esp + 0x24], ecx
movdqu xmmword [edx], xmm2
movq qword [edx + 0x10], xmm0
mov eax, dword [esi + ecx*8 + 0x34]
mov dword [edx + 0x1c], eax
test edi, 0x200f0000
je 0x1013d89b
cmp word [esp + 0x5c], 0
je 0x1013d888
test edi, 0x20000000
jne 0x1013d888
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x20], eax
jmp 0x1013d8a2
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x48]
mov dword [edx + 0x20], eax
inc dword [esi + 0x48]
mov esi, dword [esp + 0x14]
jmp 0x1013d8a2
mov dword [edx + 0x20], 0xffffffff
mov edx, dword [esp + 0x4c]
xor eax, eax
mov edx, dword [edx]
test edx, edx
jle 0x1013d8d0
mov esi, dword [esi + ecx*8 + 0x34]
mov ecx, dword [esp + 0x4c]
add ecx, 4
lea esp, [esp]
cmp dword [ecx], esi
je 0x1013d95f
inc eax
add ecx, 4
cmp eax, edx
jl 0x1013d8c0
xorps xmm0, xmm0
movlpd qword [esp + 0x50], xmm0
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 8]
not ecx
and dword [esp + 0xb8], ecx
not edx
mov ecx, dword [esp + 0x20]
and dword [esp + 0xbc], edx
comisd xmm1, xmmword [0x1022ed98]
mov edx, dword [esp + 0x10]
mov byte [ecx + 0x34], al
jb 0x1013d91c
mulsd xmm1, qword [edx + 0x1b8]
movsd qword [edx + 0x1b8], xmm1
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov eax, dword [esi + eax*8 + 0x4c]
test eax, eax
je 0x1013d934
test edi, 0xf0000
je 0x1013d979
mov eax, dword [esp + 0xcc]
add ecx, 0x58
mov edx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0x20], ecx
cmp eax, edx
jge 0x1013d9bf
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
jmp 0x1013d442
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
jmp 0x1013d8e1
push dword [eax]
push 0x1022e3b8
push edx
call fcn.100e18e0
add esp, 0xc
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, edi
movsd xmm0, qword [edi + 0x28]
mov ecx, dword [esp + 0x28]
movsd qword [eax + 0x1b8], xmm0
call fcn.1013d060
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.1016198b
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x44], 0
jne 0x1013d989
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x38], 0
jne 0x1013d989
mov edi, dword [esp + 0xc]
test edx, edx
je 0x1013d9e1
mov ax, word [ecx - 0x52]
jmp 0x1013d9e3
xor eax, eax
mov word [edi + 8], ax
mov eax, dword [esp + 0x40]
and eax, 0x2000000
mov dword [esp + 0x40], eax
je 0x1013da09
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x1013da09
mov ax, word [ecx]
mov word [edi + 8], ax
mov eax, dword [esp + 0x40]
test byte [ebp + 0x14], 4
je 0x1013da1e
test eax, eax
je 0x1013da1e
mov byte [edi + 0xc], 1
and dword [edi + 0x38], 0xffbfffff
or edx, 0xffffffff
mov ecx, esi
call fcn.10119100
movsd xmm0, qword [0x1022ed98]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], 0xffffffff
movsd qword [edi + 0x30], xmm0
test ecx, ecx
jle 0x1013dce2
mov dword [esp + 0x2c], ecx
lea edx, [edi + 0x38]
jmp 0x1013da60
movzx eax, byte [edx + 0x34]
mov ecx, dword [esp + 0x14]
movsd xmm0, qword [edx + 8]
mulsd xmm0, qword [edi + 0x30]
lea eax, [eax + eax*8]
lea eax, [eax + 1]
mov esi, dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov dword [esp + 8], eax
movsd qword [edi + 0x30], xmm0
mov edi, 0xfff0bdc0
mov edx, dword [esi + 0x40]
test edx, edx
je 0x1013dab3
mov eax, dword [esp + 0x28]
xor edi, edi
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x1013dab3
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x1013dab3
inc edi
add eax, 0x10
cmp edi, ecx
jl 0x1013daa7
mov cl, byte [esi + 0x2a]
test cl, 2
jne 0x1013dba9
cmp dword [esi + 0xc], 0
jne 0x1013dba9
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, 0x8000000
je 0x1013db10
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1013daec
mov ecx, dword [esp + 0x28]
cmp dword [eax], ecx
je 0x1013daec
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x1013dae1
mov esi, dword [esp + 8]
mov edx, 0x87
mov ecx, dword [esp + 0x30]
push 0xfffffffffffffff6
push eax
push 0
push 0
push dword [esi + 0x2c]
call fcn.100fb460
add esp, 0x14
jmp 0x1013dbad
test cl, 0x10
jne 0x1013dba9
test eax, 0x400000
jne 0x1013db94
test byte [ebp + 0x14], 0x10
jne 0x1013db94
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp byte [ecx + 0xc], al
mov ecx, dword [esp + 0x10]
setne al
add eax, 0x27
push eax
mov eax, dword [esp + 0xc]
push esi
push edi
mov edx, dword [eax + 0x2c]
call fcn.101206c0
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp byte [eax + 0xc], 0
jne 0x1013dba9
cmp word [esi + 0x26], 0x40
jge 0x1013dba9
mov eax, dword [esp + 8]
xor esi, esi
mov edx, dword [eax + 0x38]
mov ecx, dword [eax + 0x3c]
mov eax, edx
or eax, ecx
je 0x1013db7d
mov edi, edi
shrd edx, ecx, 1
inc esi
shr ecx, 1
mov eax, edx
or eax, ecx
jne 0x1013db70
mov eax, dword [esp + 0x30]
mov ecx, eax
push 0xfffffffffffffff2
push esi
mov edx, dword [eax + 0x1c]
dec edx
call fcn.100fb9a0
add esp, 8
jmp 0x1013dba9
push dword [esi]
mov ecx, dword [esp + 0x14]
mov edx, edi
push 0
push dword [esi + 0x20]
call fcn.101145d0
add esp, 0xc
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
test eax, 0x20000000
je 0x1013dbdc
mov edx, dword [esp + 0xa4]
push ecx
push dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x28]
push esi
call fcn.10139370
add esp, 0x10
jmp 0x1013dc71
test eax, 0xf0000
je 0x1013dc71
mov esi, dword [ecx + 0x10]
mov edx, esi
mov ecx, dword [esp + 0x10]
call fcn.10119730
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x1c]
cmp dword [eax + 0x20], esi
jg 0x1013dc2d
mov ecx, eax
call fcn.100fb250
test eax, eax
je 0x1013dc29
mov esi, 1
jmp 0x1013dc5d
mov eax, dword [esp + 0x30]
inc dword [eax + 0x1c]
lea ecx, [esi + esi*4]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x5c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x27
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x30]
mov edx, esi
push 0xfffffffffffffff0
push dword [esp + 0x1c]
call fcn.100fb9a0
add esp, 8
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.10119100
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 4]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
jle 0x1013dca8
mov esi, dword [esp + 8]
add ecx, 4
mov esi, dword [esi + 0x2c]
cmp dword [ecx], esi
je 0x1013dd79
inc eax
add ecx, 4
cmp eax, edx
jl 0x1013dc98
xorps xmm0, xmm0
movlpd qword [esp + 0x50], xmm0
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0xc]
not edx
and dword [esp + 0x24], edx
not ecx
mov edx, dword [esp + 0x34]
and dword [esp + 0x20], ecx
add edx, 0x58
dec dword [esp + 0x2c]
mov dword [esp + 0x34], edx
jne 0x1013da60
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x1c]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x38], 0
jne 0x1013d98d
xor esi, esi
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
test ecx, ecx
jle 0x1013dd63
add edi, 0x64
push dword [ebp + 0x14]
movzx eax, byte [edi + 8]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
lea eax, [edi - 0x2c]
push esi
push eax
call fcn.1013b8d0
push dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov edx, esi
push dword [esp + 0x40]
push dword [ebp + 0x14]
call fcn.1013bb20
mov ecx, dword [edi]
lea edi, [edi + 0x58]
mov dword [esp + 0x48], eax
inc esi
mov eax, dword [esp + 0x28]
add esp, 0x1c
mov dword [esp + 0x20], edx
mov dword [eax + 0x14], ecx
cmp esi, dword [esp + 0x1c]
jl 0x1013dd13
mov edi, eax
mov ecx, dword [esp + 0x12c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.1016198b
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
jmp 0x1013dcb9