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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov ecx, dword [ebx]
lea eax, [esi + 2]
lea eax, [eax + eax*2]
mov dword [esp + 0x14], ecx
shl eax, 2
mov dword [esp + 0x30], eax
add eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10116576
mov eax, dword [eax]
mov dword [esp + 0x34], eax
jmp 0x1011657e
mov dword [esp + 0x34], 0
mov eax, dword [edi]
push 0x60
mov eax, dword [eax + 0x30]
mov dword [esp + 0x3c], eax
xor eax, eax
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x50]
push eax
call fcn.1012ab60
mov eax, dword [esp + 0x34]
add esp, 0xc
mov edx, dword [esp + 0x14]
xorps xmm0, xmm0
movq qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], 0
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10116613
mov ebx, esi
lea eax, [ebx + 3]
lea eax, [eax + eax*2]
lea edx, [edx + eax*4]
mov eax, dword [edx + 4]
mov dword [esp + 0x2c], edx
lea ecx, [eax + eax*2]
mov eax, dword [edx + 8]
lea ecx, [ecx - 3]
push dword [eax + ecx*4]
lea esi, [eax + ecx*4]
mov ecx, edi
lea edx, [esp + 0x4c]
mov dword [esp + 0x1c], esi
call fcn.10115cb0
mov eax, dword [esi + 8]
add esp, 4
mov ecx, dword [esp + 0x14]
inc eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0xa0], 0
jmp 0x10116788
mov ecx, edi
call fcn.10115280
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x14]
dec ecx
cmp esi, ecx
lea esi, [edi + 0x24]
jne 0x101166a5
mov edx, ebx
mov ecx, esi
call fcn.10110370
cmp dword [esi], 0
jne 0x1011669d
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x20], ecx
call fcn.100cb480
test eax, eax
jne 0x10116697
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push 0
lea eax, [eax + eax*2]
lea eax, [eax*4 + 0x34]
push eax
call fcn.1001e930
add esp, 8
test eax, eax
je 0x10116697
mov ecx, dword [esp + 0x20]
xorps xmm0, xmm0
mov dword [ebx], eax
lea ecx, [ecx + ecx*2]
movq qword [eax + ecx*4 + 0x18], xmm0
mov dword [eax + ecx*4 + 0x20], 0
mov ecx, eax
inc dword [eax + 0x14]
mov dword [esp + 0x14], ecx
jmp 0x101166a7
mov dword [esi], 7
mov ecx, dword [ebx]
mov dword [esp + 0x14], ecx
jmp 0x101166a7
mov ecx, eax
cmp dword [esi], 0
mov ebx, dword [ebp + 8]
jne 0x10116ec8
lea eax, [ebx + 3]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx + 4]
inc eax
mov dword [esp + 0x20], ecx
lea eax, [eax + eax*2]
shl eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x24], eax
call fcn.100cb480
test eax, eax
jne 0x10116712
mov ecx, dword [esp + 0x24]
push eax
push dword [esp + 0x1c]
call fcn.1001e930
add esp, 8
test eax, eax
je 0x10116712
mov edx, dword [esp + 0x20]
xorps xmm0, xmm0
mov ecx, dword [edx + 4]
lea ecx, [ecx + ecx*2]
movq qword [eax + ecx*4], xmm0
mov dword [eax + ecx*4 + 8], 0
mov dword [edx + 8], eax
jmp 0x10116718
mov dword [esi], 7
cmp dword [esi], 0
jne 0x10116ec8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x48]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x28], eax
lea eax, [ebx + 3]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
mov ecx, edi
push esi
mov dword [esp + 0x30], eax
call fcn.10115cb0
mov eax, dword [esp + 0x30]
add esp, 4
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
lea ecx, [edx + edx*2]
lea ecx, [eax + ecx*4]
lea eax, [edx + 1]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x2c]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 4], 1
mov dword [ecx], esi
mov ecx, dword [esp + 0x14]
inc dword [ecx + 0x10]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x2c]
cmp dword [eax + 4], 1
jne 0x101167a2
lea eax, [ebx + 2]
mov dword [esp + 0x24], 1
cmp dword [ecx + 0x14], eax
je 0x101167aa
mov dword [esp + 0x24], 0
lea eax, [esp + 0xc]
push eax
push edx
push ebx
push 0
push 0
push 0
mov edx, ecx
mov ecx, edi
push 0x20
call fcn.10114f20
mov esi, dword [esp + 0x28]
add esp, 0x1c
mov edx, esi
mov ecx, edi
call fcn.10115260
test eax, eax
jne 0x10116acf
nop word [eax + eax]
mov eax, dword [esi + 0x48]
add esi, 0x50
movzx eax, word [eax + 4]
lea eax, [eax + eax*2]
shl eax, 5
add esi, eax
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0xc]
mov ebx, dword [eax + esi + 0x98]
mov ecx, dword [eax + esi + 0x94]
mov dword [esp + 0x30], ecx
cmp ebx, dword [esp + 0x40]
jne 0x10116961
test ebx, ebx
jle 0x10116880
mov edx, dword [esp + 0x3c]
mov esi, ebx
sub esi, 4
jb 0x10116836
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1011683b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10116825
cmp esi, 0xfffffffc
je 0x10116878
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1011695d
cmp esi, 0xfffffffd
je 0x10116878
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1011695d
cmp esi, 0xfffffffe
je 0x10116878
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1011695d
cmp esi, 0xffffffff
je 0x10116878
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1011695d
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x58], 0
jne 0x101168a3
cmp dword [esp + 0x24], 0
jne 0x10116aac
cmp byte [eax + 0x5c], 0
je 0x10116aac
cmp dword [edi + 0x24], 0
jne 0x101168c5
test edx, edx
jne 0x101168c5
push ecx
push ebx
lea edx, [esp + 0x50]
mov ecx, edi
call fcn.10115960
add esp, 8
mov dword [esp + 0x10], 1
mov eax, dword [esi + 0x48]
mov ebx, dword [esp + 0xc]
movzx eax, word [eax + 4]
lea eax, [eax + eax*2]
shl eax, 5
cmp dword [edi + 0x24], 0
mov esi, dword [eax + esi + 0xa0]
mov ebx, dword [eax + ebx + 0xa4]
jne 0x101169f4
mov eax, dword [edi]
mov ecx, dword [esp + 0x58]
add ecx, dword [esp + 0x64]
cmp ecx, dword [eax + 0x4c]
jl 0x10116908
lea edx, [esp + 0x48]
mov ecx, edi
call fcn.10115810
mov al, byte [esp + 0x81]
test al, al
je 0x1011693d
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.10115600
mov al, byte [esp + 0x89]
add esp, 8
cmp byte [esp + 0x80], 0
jne 0x101169cd
test al, al
jne 0x101169cd
mov eax, esi
mov ecx, ebx
sub eax, dword [esp + 0x78]
sbb ecx, dword [esp + 0x7c]
jmp 0x101169d1
mov esi, dword [esp + 0xc]
cmp dword [ebp + 0xc], 0
je 0x10116978
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x84], eax
jg 0x10116acf
xor esi, esi
mov dword [esp + 0x40], esi
test ebx, ebx
je 0x101169ba
cmp ebx, dword [esp + 0x44]
jbe 0x101169a0
push ebx
lea ecx, [edi + 0x24]
lea edx, [esp + 0x40]
call fcn.10107ed0
add esp, 4
test eax, eax
jne 0x101169ba
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push ebx
push dword [esp + 0x34]
add eax, esi
push eax
call fcn.1012bff0
add esp, 0xc
add esi, ebx
mov dword [esp + 0x40], esi
mov ecx, dword [esp + 0x30]
xor edx, edx
mov esi, dword [esp + 0xc]
mov dword [esp + 0x10], edx
jmp 0x10116884
mov eax, esi
mov ecx, ebx
push ecx
push eax
lea edx, [esp + 0x5c]
lea ecx, [edi + 0x24]
call fcn.10107f60
add esp, 8
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], ebx
mov word [esp + 0x80], 0
cmp dword [esp + 0x38], 1
jne 0x10116a75
mov esi, dword [esp + 0x20]
cmp byte [esi + 0x5c], 0
je 0x10116aa8
mov ecx, dword [esp + 0x58]
lea ebx, [edi + 0x24]
lea eax, [ecx + 9]
cmp eax, dword [esp + 0x5c]
jbe 0x10116a30
push eax
lea edx, [esp + 0x58]
mov ecx, ebx
call fcn.10107ed0
mov ecx, dword [esp + 0x5c]
add esp, 4
test eax, eax
jne 0x10116a41
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 + 0x58], 0
jle 0x10116aa8
lea eax, [ecx + 9]
cmp eax, dword [esp + 0x5c]
jbe 0x10116a67
push eax
lea edx, [esp + 0x58]
mov ecx, ebx
call fcn.10107ed0
add esp, 4
test eax, eax
jne 0x10116aa8
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov byte [eax + ecx], 0
inc dword [esp + 0x58]
jmp 0x10116aa8
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x58]
movzx eax, byte [ebx + 0x5c]
lea eax, [eax + ecx*2]
cdq
lea ecx, [edi + 0x24]
push edx
push eax
lea edx, [esp + 0x5c]
call fcn.10107f60
lea eax, [esp + 0x50]
mov edx, ebx
push 0x10116420
push eax
mov ecx, edi
call fcn.10114860
add esp, 0x10
mov esi, dword [esp + 0xc]
push 0
push 0
push 0
mov edx, esi
mov ecx, edi
call fcn.10114270
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.10115260
test eax, eax
je 0x101167e0
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x48]
add ebx, 8
mov ecx, edi
push ebx
mov dword [esp + 0x38], ebx
call fcn.10115bd0
add esp, 4
cmp dword [edi + 0x24], 0
jne 0x10116b0d
cmp byte [esi + 0x10], 0
jne 0x10116b0d
mov edx, esi
mov ecx, edi
call fcn.10115e10
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
jmp 0x10116ce6
mov edx, dword [esp + 0x1c]
test edx, edx
jle 0x10116c98
xor esi, esi
mov dword [esp + 0x24], edx
lea ebx, [edi + 0x38]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
mov ecx, dword [esi + eax]
mov eax, ecx
cdq
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], edx
lea eax, [ecx + 1]
xor ecx, ecx
cdq
shl eax, 5
sub ecx, 1
sbb eax, 0
push eax
mov eax, dword [esp + 0x1c]
push ecx
shl eax, 5
mov ecx, edi
push eax
push 0
call fcn.10110170
add esp, 0x10
cmp dword [ebx], 0
jne 0x10116c50
mov eax, dword [edi]
push dword [eax + 8]
push dword [eax + 4]
push str.DELETE_FROM__q._q_idx_WHERE_segid_
call fcn.10021580
add esp, 0xc
mov esi, eax
cmp dword [edi + 0x24], 0
jne 0x10116bb5
test esi, esi
je 0x10116ba9
mov ecx, dword [edi]
mov edx, esi
push 0
push ebx
push 0
mov ecx, dword [ecx]
push 0x85
push 0xffffffffffffffff
call fcn.100937b0
add esp, 0x14
mov dword [edi + 0x24], eax
jmp 0x10116bbd
mov dword [edi + 0x24], 7
jmp 0x10116c4c
test esi, esi
je 0x10116c4c
cmp dword [0x10165af8], 0
je 0x10116c42
mov eax, dword [0x10168b48]
test eax, eax
je 0x10116bd9
push eax
call dword [0x10165b48]
add esp, 4
push esi
call dword [0x10165b24]
movd xmm0, dword [0x101689f4]
xor ecx, ecx
movd xmm2, dword [0x101689d0]
add esp, 4
punpckldq xmm2, xmm0
movd xmm1, eax
movd xmm0, ecx
punpckldq xmm1, xmm0
punpckldq xmm1, xmmword [0x101611a0]
psubd xmm2, xmm1
movd dword [0x101689d0], xmm2
psrldq xmm2, 4
push esi
movd dword [0x101689f4], xmm2
call dword [0x10165b1c]
mov eax, dword [0x10168b48]
add esp, 4
test eax, eax
je 0x10116c4c
push eax
call dword [0x10165b50]
jmp 0x10116c49
push esi
call dword [0x10165b1c]
add esp, 4
mov esi, dword [esp + 0x10]
cmp dword [edi + 0x24], 0
jne 0x10116c7e
push dword [esp + 0x38]
push dword [esp + 0x1c]
push 1
push dword [ebx]
call fcn.1004b480
push dword [ebx]
call fcn.10049ed0
add esp, 0x14
push dword [ebx]
call fcn.10048ea0
add esp, 4
mov dword [edi + 0x24], eax
add esi, 0xc
sub dword [esp + 0x24], 1
mov dword [esp + 0x10], esi
jne 0x10116b26
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 4]
cmp eax, edx
je 0x10116cc3
mov ecx, dword [esi + 8]
sub eax, edx
lea eax, [eax + eax*2]
shl eax, 2
push eax
lea eax, [edx + edx*2]
lea eax, [ecx + eax*4]
push eax
push ecx
call fcn.1012bff0
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x14]
sub dword [ecx + 0x10], edx
sub dword [esi + 4], edx
mov dword [esi], 0
cmp dword [ebx], 0
mov esi, dword [esp + 0xc]
jne 0x10116ce6
mov eax, dword [esp + 0x2c]
dec dword [eax + 4]
dec dword [ecx + 0x10]
test esi, esi
je 0x10116eaf
xor ebx, ebx
cmp dword [esi + 0x30], ebx
jle 0x10116e4f
add esi, 0x5c
nop dword [eax]
lea ecx, [esi + 0x38]
call fcn.10108100
mov edi, dword [esi]
test edi, edi
je 0x10116d66
cmp dword [0x10165af8], 0
je 0x10116d5c
mov eax, dword [0x10168b48]
test eax, eax
je 0x10116d2a
push eax
call dword [0x10165b48]
add esp, 4
push edi
call dword [0x10165b24]
sub dword [0x101689d0], eax
add esp, 4
dec dword [0x101689f4]
push edi
call dword [0x10165b1c]
mov eax, dword [0x10168b48]
add esp, 4
test eax, eax
je 0x10116d6b
push eax
call dword [0x10165b50]
jmp 0x10116d63
push edi
call dword [0x10165b1c]
add esp, 4
mov eax, dword [0x10168b48]
mov edi, dword [esi + 4]
test edi, edi
je 0x10116dc5
cmp dword [0x10165af8], 0
je 0x10116dbb
test eax, eax
je 0x10116d89
push eax
call dword [0x10165b48]
add esp, 4
push edi
call dword [0x10165b24]
sub dword [0x101689d0], eax
add esp, 4
dec dword [0x101689f4]
push edi
call dword [0x10165b1c]
mov eax, dword [0x10168b48]
add esp, 4
test eax, eax
je 0x10116dc5
push eax
call dword [0x10165b50]
jmp 0x10116dc2
push edi
call dword [0x10165b1c]
add esp, 4
mov ecx, dword [esi + 0x34]
call fcn.101116d0
mov edi, dword [esi + 0x30]
test edi, edi
je 0x10116e2c
cmp dword [0x10165af8], 0
je 0x10116e22
mov eax, dword [0x10168b48]
test eax, eax
je 0x10116df0
push eax
call dword [0x10165b48]
add esp, 4
push edi
call dword [0x10165b24]
sub dword [0x101689d0], eax
add esp, 4
dec dword [0x101689f4]
push edi
call dword [0x10165b1c]
mov eax, dword [0x10168b48]
add esp, 4
test eax, eax
je 0x10116e2c
push eax
call dword [0x10165b50]
jmp 0x10116e29
push edi
call dword [0x10165b1c]
add esp, 4
push 0x60
lea eax, [esi - 0xc]
push 0
push eax
call fcn.1012ab60
mov eax, dword [esp + 0x18]
inc ebx
add esp, 0xc
add esi, 0x60
cmp ebx, dword [eax + 0x30]
jl 0x10116d00
mov esi, eax
lea ecx, [esi + 0x1c]
call fcn.10108100
cmp dword [0x10165af8], 0
je 0x10116ea5
mov eax, dword [0x10168b48]
test eax, eax
je 0x10116e73
push eax
call dword [0x10165b48]
add esp, 4
push esi
call dword [0x10165b24]
sub dword [0x101689d0], eax
add esp, 4
dec dword [0x101689f4]
push esi
call dword [0x10165b1c]
mov eax, dword [0x10168b48]
add esp, 4
test eax, eax
je 0x10116eaf
push eax
call dword [0x10165b50]
jmp 0x10116eac
push esi
call dword [0x10165b1c]
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.10108100
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10116ec8
mov eax, dword [esp + 0x84]
sub dword [ecx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret