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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [edx]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], eax
push edi
mov dword [esp + 0x1c], edx
mov edi, ecx
lea ebx, [esi + esi*2]
mov dword [esp + 0x10], 0
shl ebx, 2
add eax, ebx
mov dword [esp + 0x14], eax
add eax, 0x20
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101216b8
mov eax, dword [eax]
mov dword [esp + 0x30], eax
jmp 0x101216c0
mov dword [esp + 0x30], 0
mov eax, dword [edi]
push 0x60
push 0
mov dword [esp + 0x40], 0
mov eax, dword [eax + 0x34]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0x50]
push eax
call fcn.10138870
mov eax, dword [esp + 0x34]
add esp, 0xc
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
movq qword [esp + 0x3c], xmm0
mov eax, dword [eax]
mov dword [esp + 0x24], eax
test eax, eax
je 0x10121759
mov edx, dword [esp + 0x14]
add edx, 0x2c
mov dword [esp + 0x1c], edx
mov eax, dword [edx + 4]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + 8]
add eax, 0xffffffc8
lea edx, [esp + 0x48]
push dword [eax + ecx*8]
lea ebx, [eax + ecx*8]
mov ecx, edi
mov dword [esp + 0x30], ebx
call fcn.10120d90
mov eax, dword [ebx + 8]
add esp, 4
mov ecx, dword [esp + 0x18]
inc eax
mov edx, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov dword [esp + 0xa0], 0
jmp 0x1012191c
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.10120360
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov ecx, dword [edx + 0x1c]
dec ecx
cmp esi, ecx
lea esi, [edi + 0x2c]
jne 0x101217f3
mov ebx, dword [esp + 0x1c]
mov ecx, esi
mov edx, ebx
call fcn.1011ad90
cmp dword [esi], 0
jne 0x101217e4
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x1c], ecx
call fcn.100d6670
test eax, eax
jne 0x101217de
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0
lea eax, [eax + eax*2]
add eax, 0xf
shl eax, 2
push eax
call fcn.10026c10
add esp, 8
test eax, eax
je 0x101217de
mov ecx, dword [esp + 0x1c]
xorps xmm0, xmm0
mov dword [ebx], eax
lea ecx, [ecx + ecx*2]
movq qword [eax + ecx*4 + 0x20], xmm0
mov dword [eax + ecx*4 + 0x28], 0
inc dword [eax + 0x1c]
jmp 0x101217e4
mov dword [esi], 7
mov eax, dword [ebp + 8]
mov edx, dword [ebx]
mov dword [esp + 0x18], edx
lea ebx, [eax + eax*2]
shl ebx, 2
cmp dword [esi], 0
jne 0x1012186c
mov eax, dword [ebx + edx + 0x30]
inc eax
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ebx + edx + 0x34]
shl ecx, 3
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
call fcn.100d6670
test eax, eax
jne 0x10121866
mov ecx, dword [esp + 0x1c]
push eax
push dword [esp + 0x18]
call fcn.10026c10
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x10121866
mov ecx, dword [esp + 0x18]
push 0x38
push 0
mov ecx, dword [ebx + ecx + 0x30]
lea edx, [ecx*8]
sub edx, ecx
lea eax, [eax + edx*8]
push eax
call fcn.10138870
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [ebx + ecx + 0x34], eax
jmp 0x10121870
mov dword [esi], 7
mov ecx, dword [esp + 0x18]
cmp dword [esi], 0
jne 0x10122089
mov esi, dword [esp + 0x20]
lea eax, [ecx + 0x20]
add ecx, 0x2c
lea edx, [esp + 0x48]
add eax, ebx
add ebx, ecx
push esi
mov ecx, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ebx
call fcn.10120d90
mov edx, dword [ebx + 4]
add esp, 4
mov eax, dword [ebx + 8]
lea ecx, [edx*8]
sub ecx, edx
lea ecx, [eax + ecx*8]
lea eax, [edx + 1]
mov dword [esp + 0x2c], ecx
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0x28]
mov dword [ecx + 4], 1
mov dword [ecx], esi
mov ecx, dword [esp + 0x18]
inc dword [ecx + 0x18]
cmp dword [ecx + 0x14], 0
mov edx, dword [ebx + 4]
mov dword [esp + 0x24], edx
ja 0x101218e1
cmp dword [ecx + 0x10], 0
jbe 0x10121919
mov eax, dword [ebx + 8]
mov esi, dword [esp + 0x2c]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ecx + edx*8 - 0x20]
mov ecx, dword [ecx + edx*8 - 0x1c]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x18], eax
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x1c]
cmp dword [eax + 4], 1
jne 0x10121936
lea eax, [esi + 2]
mov dword [esp + 0x14], 1
cmp dword [ecx + 0x1c], eax
je 0x1012193e
mov dword [esp + 0x14], 0
lea eax, [esp + 0x10]
push eax
push edx
push esi
push 0
push 0
push 0
mov edx, ecx
mov ecx, edi
push 0x20
call fcn.1011ffe0
mov esi, dword [esp + 0x2c]
add esp, 0x1c
cmp dword [edi + 0x2c], 0
lea ecx, [edi + 0x2c]
jne 0x10121c3e
cmp byte [esi + 0x10], 0
jne 0x10121c3e
mov eax, dword [esi + 0x48]
movzx eax, word [eax + 4]
imul eax, eax, 0x68
mov ebx, dword [eax + esi + 0xa0]
lea edx, [eax + 0x50]
add edx, esi
mov dword [esp + 0x20], edx
mov edx, dword [eax + esi + 0x9c]
mov dword [esp + 0x34], edx
cmp ebx, dword [esp + 0x40]
jne 0x10121a06
test ebx, ebx
jle 0x10121a6f
mov esi, ebx
mov ecx, edx
mov edx, dword [esp + 0x3c]
sub esi, 4
jb 0x101219c5
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x101219ce
add ecx, 4
add edx, 4
sub esi, 4
jae 0x101219b4
cmp esi, 0xfffffffc
je 0x10121a64
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x101219ff
cmp esi, 0xfffffffd
je 0x10121a64
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x101219ff
cmp esi, 0xfffffffe
je 0x10121a64
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x101219ff
cmp esi, 0xffffffff
je 0x10121a64
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x10121a64
mov esi, dword [esp + 0x10]
lea ecx, [edi + 0x2c]
cmp dword [ebp + 0xc], 0
je 0x10121a1d
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x84], eax
jg 0x10121c3e
xor esi, esi
mov dword [esp + 0x40], esi
test ebx, ebx
je 0x10121a5c
cmp ebx, dword [esp + 0x44]
jbe 0x10121a42
push ebx
lea edx, [esp + 0x40]
call fcn.101128a0
add esp, 4
test eax, eax
jne 0x10121a5c
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push ebx
push dword [esp + 0x38]
add eax, esi
push eax
call fcn.10139d00
add esp, 0xc
add esi, ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], 0
mov edx, dword [esp + 0x34]
lea ecx, [edi + 0x2c]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x60], 0
jne 0x10121a8e
cmp dword [esp + 0x14], 0
jne 0x10121c27
cmp byte [eax + 0x64], 0
je 0x10121c27
cmp dword [ecx], 0
jne 0x10121ab5
cmp dword [esp + 0x38], 0
jne 0x10121ab5
push edx
push ebx
lea edx, [esp + 0x50]
mov ecx, edi
call fcn.10120a20
add esp, 8
mov dword [esp + 0x38], 1
lea ecx, [edi + 0x2c]
mov eax, dword [esi + 0x48]
mov ebx, dword [esp + 0x10]
movzx eax, word [eax + 4]
imul eax, eax, 0x68
cmp dword [ecx], 0
mov esi, dword [eax + esi + 0xa8]
mov ebx, dword [eax + ebx + 0xac]
jne 0x10121b6c
mov eax, dword [edi]
mov ecx, dword [esp + 0x58]
add ecx, dword [esp + 0x64]
cmp ecx, dword [eax + 0x54]
jl 0x10121af4
lea edx, [esp + 0x48]
mov ecx, edi
call fcn.101208f0
mov al, byte [esp + 0x81]
test al, al
je 0x10121b29
movzx edx, word [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov eax, edx
shr eax, 8
push ebx
push esi
mov byte [ecx + 1], dl
lea edx, [esp + 0x50]
mov byte [ecx], al
mov ecx, edi
call fcn.101206e0
mov al, byte [esp + 0x89]
add esp, 8
cmp byte [esp + 0x80], 0
jne 0x10121b45
test al, al
jne 0x10121b45
mov eax, esi
mov ecx, ebx
sub eax, dword [esp + 0x78]
sbb ecx, dword [esp + 0x7c]
jmp 0x10121b49
mov eax, esi
mov ecx, ebx
push ecx
push eax
lea edx, [esp + 0x5c]
lea ecx, [edi + 0x2c]
call fcn.10112930
add esp, 8
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], ebx
mov word [esp + 0x80], 0
cmp dword [esp + 0xa8], 1
jne 0x10121bf0
mov esi, dword [esp + 0x20]
cmp byte [esi + 0x64], 0
je 0x10121c23
mov ecx, dword [esp + 0x58]
lea ebx, [edi + 0x2c]
lea eax, [ecx + 9]
cmp eax, dword [esp + 0x5c]
jbe 0x10121bab
push eax
lea edx, [esp + 0x58]
mov ecx, ebx
call fcn.101128a0
mov ecx, dword [esp + 0x5c]
add esp, 4
test eax, eax
jne 0x10121bbc
mov eax, dword [esp + 0x54]
mov byte [eax + ecx], 0
mov ecx, dword [esp + 0x58]
inc ecx
mov dword [esp + 0x58], ecx
cmp dword [esi + 0x60], 0
jle 0x10121c23
lea eax, [ecx + 9]
cmp eax, dword [esp + 0x5c]
jbe 0x10121be2
push eax
lea edx, [esp + 0x58]
mov ecx, ebx
call fcn.101128a0
add esp, 4
test eax, eax
jne 0x10121c23
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov byte [eax + ecx], 0
inc dword [esp + 0x58]
jmp 0x10121c23
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x60]
movzx eax, byte [ebx + 0x64]
lea eax, [eax + ecx*2]
cdq
lea ecx, [edi + 0x2c]
push edx
push eax
lea edx, [esp + 0x5c]
call fcn.10112930
lea eax, [esp + 0x50]
mov edx, ebx
push 0x10121560
push eax
mov ecx, edi
call fcn.1011f920
add esp, 0x10
mov esi, dword [esp + 0x10]
push 0
push 0
push 0
mov edx, esi
mov ecx, edi
call fcn.1011f2c0
add esp, 0xc
jmp 0x1012195d
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x48]
add eax, 8
mov ecx, edi
push eax
call fcn.10120cb0
add esp, 4
cmp dword [edi + 0x2c], 0
jne 0x10121c78
cmp byte [esi + 0x10], 0
jne 0x10121c78
mov edx, esi
mov ecx, edi
call fcn.10120ef0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
jmp 0x10121ea0
mov esi, dword [esp + 0x24]
test esi, esi
jle 0x10121e45
xor eax, eax
mov dword [esp + 0x30], esi
lea ebx, [edi + 0x40]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov esi, dword [ecx + 8]
mov ecx, dword [esi + eax + 0x30]
add esi, eax
sub ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x34]
sbb eax, dword [esi + 0x2c]
add dword [edx + 0x30], ecx
adc dword [edx + 0x34], eax
xor ecx, ecx
mov eax, dword [esi]
mov dword [esp + 0x20], eax
inc eax
cdq
shl eax, 5
sub ecx, 1
sbb eax, 0
push eax
mov eax, dword [esp + 0x24]
push ecx
cdq
mov ecx, edi
shl eax, 5
push eax
push 0
call fcn.1011ab80
mov ecx, dword [esi + 0x20]
add esp, 0x10
test ecx, ecx
je 0x10121d0e
mov eax, dword [esp + 0x20]
add eax, 0x10000
cdq
mov esi, eax
lea eax, [ecx - 1]
cdq
mov ecx, esi
shl ecx, 5
add eax, 0
adc edx, ecx
shl esi, 5
push edx
push eax
push esi
push 0
mov ecx, edi
call fcn.1011ab80
add esp, 0x10
cmp dword [ebx], 0
jne 0x10121dfe
mov eax, dword [edi]
push dword [eax + 8]
push dword [eax + 4]
push str.DELETE_FROM__q._q_idx_WHERE_segid_
call fcn.100294e0
add esp, 0xc
mov esi, eax
cmp dword [edi + 0x2c], 0
jne 0x10121d63
test esi, esi
je 0x10121d57
mov ecx, dword [edi]
mov edx, esi
push 0
push ebx
push 0
mov ecx, dword [ecx]
push 0x85
push 0xffffffffffffffff
call fcn.1009d7f0
add esp, 0x14
mov dword [edi + 0x2c], eax
jmp 0x10121d6b
mov dword [edi + 0x2c], 7
jmp 0x10121dfe
test esi, esi
je 0x10121dfe
cmp dword [0x10177b48], 0
je 0x10121df4
mov eax, dword [0x1017ad00]
test eax, eax
je 0x10121d8b
push eax
call dword [0x10177b98]
add esp, 4
push esi
call dword [0x10177b74]
movd xmm0, dword [0x1017abac]
xor ecx, ecx
movd xmm2, dword [0x1017ab88]
add esp, 4
punpckldq xmm2, xmm0
movd xmm1, eax
movd xmm0, ecx
punpckldq xmm1, xmm0
punpckldq xmm1, xmmword [0x10171990]
psubd xmm2, xmm1
movd dword [0x1017ab88], xmm2
psrldq xmm2, 4
push esi
movd dword [0x1017abac], xmm2
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x10121dfe
push eax
call dword [0x10177ba0]
jmp 0x10121dfb
push esi
call dword [0x10177b6c]
add esp, 4
cmp dword [edi + 0x2c], 0
jne 0x10121e2b
mov eax, dword [esp + 0x20]
cdq
push edx
push eax
push 1
push dword [ebx]
call fcn.10056380
push dword [ebx]
call fcn.10054c20
add esp, 0x14
push dword [ebx]
call fcn.10053c90
add esp, 4
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x14]
add eax, 0x38
sub dword [esp + 0x30], 1
mov dword [esp + 0x14], eax
jne 0x10121c91
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov edx, dword [ebx + 4]
cmp edx, esi
je 0x10121e78
mov ecx, dword [ebx + 8]
sub edx, esi
lea eax, [edx*8]
sub eax, edx
shl eax, 3
push eax
lea eax, [esi*8]
sub eax, esi
lea eax, [ecx + eax*8]
push eax
push ecx
call fcn.10139d00
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
sub dword [ecx + 0x18], esi
sub dword [ebx + 4], esi
mov esi, dword [esp + 0x10]
mov dword [ebx], 0
cmp dword [eax + 8], 0
jne 0x10121ea0
mov edx, dword [esp + 0x1c]
dec dword [edx + 4]
dec dword [ecx + 0x18]
test esi, esi
je 0x10122070
xor ebx, ebx
cmp dword [esi + 0x30], ebx
jle 0x10122010
add esi, 0x5c
lea ecx, [esi + 0x40]
call fcn.10112ad0
mov edi, dword [esi]
test edi, edi
je 0x10121f1c
cmp dword [0x10177b48], 0
je 0x10121f12
mov eax, dword [0x1017ad00]
test eax, eax
je 0x10121ee0
push eax
call dword [0x10177b98]
add esp, 4
push edi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push edi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x10121f21
push eax
call dword [0x10177ba0]
jmp 0x10121f19
push edi
call dword [0x10177b6c]
add esp, 4
mov eax, dword [0x1017ad00]
mov edi, dword [esi + 4]
test edi, edi
je 0x10121f7b
cmp dword [0x10177b48], 0
je 0x10121f71
test eax, eax
je 0x10121f3f
push eax
call dword [0x10177b98]
add esp, 4
push edi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push edi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x10121f7b
push eax
call dword [0x10177ba0]
jmp 0x10121f78
push edi
call dword [0x10177b6c]
add esp, 4
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
call fcn.1011e960
mov ecx, dword [esi + 0x3c]
call fcn.1011c330
mov edi, dword [esi + 0x38]
test edi, edi
je 0x10121fed
cmp dword [0x10177b48], 0
je 0x10121fe3
mov eax, dword [0x1017ad00]
test eax, eax
je 0x10121fb1
push eax
call dword [0x10177b98]
add esp, 4
push edi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push edi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x10121fed
push eax
call dword [0x10177ba0]
jmp 0x10121fea
push edi
call dword [0x10177b6c]
add esp, 4
push 0x68
lea eax, [esi - 0xc]
push 0
push eax
call fcn.10138870
mov eax, dword [esp + 0x1c]
inc ebx
add esp, 0xc
add esi, 0x68
cmp ebx, dword [eax + 0x30]
jl 0x10121eb6
mov esi, eax
lea ecx, [esi + 0x1c]
call fcn.10112ad0
cmp dword [0x10177b48], 0
je 0x10122066
mov eax, dword [0x1017ad00]
test eax, eax
je 0x10122034
push eax
call dword [0x10177b98]
add esp, 4
push esi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push esi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x10122070
push eax
call dword [0x10177ba0]
jmp 0x1012206d
push esi
call dword [0x10177b6c]
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.10112ad0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10122089
mov eax, dword [esp + 0x84]
sub dword [ecx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret