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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x1029912c]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, ecx
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [ebx + 0x28]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
inc eax
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x1c], eax
push edi
test eax, eax
jne 0x101185f0
cmp dword [ebx + 0x74], eax
jne 0x101185e3
mov eax, dword [ebx]
test byte [eax + 0x4c], 8
jne 0x101185e3
mov byte [ebx + 0x17], 1
call fcn.101006a0
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
test esi, esi
je 0x10118632
test dword [edx + 4], 0x800
je 0x10118632
mov eax, dword [edx + 0x14]
xor edx, edx
mov esi, dword [eax]
mov edi, dword [esi]
test edi, edi
jle 0x10118623
add esi, 4
nop dword [eax]
mov ecx, dword [esi]
call fcn.10118280
test eax, eax
jne 0x10118623
inc edx
add esi, 0x18
cmp edx, edi
jl 0x10118610
mov esi, dword [esp + 0x50]
xor eax, eax
cmp edx, edi
cmove esi, eax
mov dword [esp + 0x50], esi
cmp dword [ebx + 0x24], 0
mov ecx, dword [esp + 0x14]
jne 0x10118ced
mov eax, dword [ecx + 4]
test eax, 0x800
je 0x10118ced
test al, 0x20
jne 0x10118ced
mov eax, dword [ecx + 0x14]
cmp dword [eax + 0x34], 0
jne 0x10118ced
test byte [eax + 8], 9
jne 0x10118ced
cmp dword [eax + 0x3c], 0
jne 0x10118ced
cmp dword [eax + 0x24], 0
jne 0x10118ced
mov ecx, dword [eax + 0x20]
cmp dword [ecx], 1
jne 0x10118ce9
cmp dword [ecx + 0x1c], 0
jne 0x10118ce9
mov ebx, dword [ecx + 0x18]
mov dword [esp + 0x40], ebx
cmp dword [ebx + 0x38], 0
jne 0x10118ce5
mov eax, dword [eax]
xor edx, edx
mov dword [esp + 0x54], eax
mov esi, dword [eax]
mov dword [esp + 0x18], esi
test esi, esi
jle 0x101186d3
lea ecx, [eax + 4]
nop dword [eax]
mov eax, dword [ecx]
cmp byte [eax], 0x9e
jne 0x10118ce5
inc edx
add ecx, 0x18
cmp edx, esi
jl 0x101186c0
mov edx, dword [ebx + 0x48]
mov ecx, 0xfff0bdc0
mov edi, dword [esp + 0x10]
test edx, edx
je 0x101186f9
mov eax, dword [edi]
xor ecx, ecx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x101186f9
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x101186f1
movzx eax, cx
mov edx, edi
movsx ecx, ax
mov eax, dword [edi + 0x74]
test eax, eax
mov dword [esp + 0x4c], ecx
cmovne edx, eax
mov eax, 1
shl eax, cl
mov esi, dword [edx + 0x54]
test esi, eax
jne 0x10118731
bts esi, ecx
mov dword [edx + 0x54], esi
cmp ecx, 1
jne 0x10118731
mov ecx, edx
call fcn.10128740
mov ecx, dword [esp + 0x4c]
push dword [ebx]
mov edx, ecx
mov ecx, edi
push 0
push dword [ebx + 0x1c]
call fcn.10122240
mov edx, dword [esp + 0x24]
add esp, 0xc
cmp edx, 1
jne 0x101187d3
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 4]
cmp word [eax + 0x20], 0
jge 0x101187d3
mov ecx, dword [esp + 0x20]
mov edx, 0x11
call fcn.10100950
mov edx, dword [esp + 0x2c]
mov ecx, edi
push 0x6d
push ebx
push dword [esp + 0x54]
mov esi, eax
call fcn.101317d0
add esp, 0xc
mov dword [esp + 0x24], 1
push dword [ebx]
push str.USING_ROWID_SEARCH_ON_TABLE__s_FOR_IN_OPERATOR
push 0
push edi
call fcn.10100d20
mov ebx, dword [esp + 0x30]
add esp, 0x10
mov edx, dword [ebx + 0x6c]
test esi, esi
jns 0x101187ac
lea esi, [edx - 1]
mov eax, dword [ebx]
cmp byte [eax + 0x51], 0
je 0x101187c1
mov eax, 0x102ad334
mov dword [eax + 8], edx
jmp 0x10118da5
mov eax, dword [ebx + 0x68]
lea ecx, [esi + esi*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x10118da5
mov dword [esp + 0x30], 0
mov eax, 1
mov dword [esp + 0x28], eax
test edx, edx
jle 0x101188c8
xor edi, edi
nop
test eax, eax
je 0x10118ce5
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov bl, byte [ecx]
mov al, bl
cmp al, 0xa4
jne 0x1011880a
mov al, byte [ecx + 0x26]
cmp al, 0xa5
jne 0x10118817
mov eax, dword [ecx + 0x14]
mov edx, dword [eax]
mov esi, edx
jmp 0x10118822
cmp al, 0x7f
jne 0x1011883c
mov eax, dword [ecx + 0x14]
mov edx, dword [eax]
mov esi, dword [edx]
cmp esi, 1
jle 0x1011883c
cmp bl, 0x7f
je 0x10118838
cmp byte [ecx + 0x26], 0x7f
je 0x10118838
mov ecx, dword [edi + eax + 4]
jmp 0x1011883c
mov ecx, dword [edi + edx + 4]
mov eax, dword [esp + 0x54]
mov eax, dword [edi + eax + 4]
movsx edx, word [eax + 0x20]
test edx, edx
js 0x1011885b
mov eax, dword [esp + 0x40]
add edx, edx
mov eax, dword [eax + 4]
mov bl, byte [eax + edx*8 + 0xd]
jmp 0x1011885d
mov bl, 0x44
call fcn.10115970
test al, al
je 0x1011887b
test bl, bl
je 0x10118883
cmp al, 0x43
jge 0x10118877
cmp bl, 0x43
jge 0x10118877
mov al, 0x41
jmp 0x10118885
mov al, 0x43
jmp 0x10118885
test bl, bl
jne 0x10118883
mov al, 0x41
jmp 0x10118885
add al, bl
movsx eax, al
sub eax, 0x41
je 0x101188a0
sub eax, 1
je 0x101188a0
xor eax, eax
cmp bl, 0x43
setge al
mov dword [esp + 0x28], eax
jmp 0x101188a4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
add edi, 0x18
mov edx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x30], ecx
cmp ecx, edx
jl 0x101187f0
test eax, eax
je 0x10118ce5
mov ebx, dword [esp + 0x40]
mov edi, dword [ebx + 8]
mov dword [esp + 0x1c], edi
test edi, edi
je 0x10118ce5
nop word [eax + eax]
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x10118da9
movzx eax, word [edi + 0x34]
mov ecx, eax
cmp ecx, edx
jl 0x10118cc4
cmp dword [edi + 0x24], ebx
jne 0x10118cc4
cmp eax, 0x3f
jae 0x10118cc4
test byte [ebp + 8], 4
je 0x1011892b
movzx eax, word [edi + 0x32]
cmp eax, edx
jg 0x10118cc4
cmp ecx, edx
jle 0x1011892b
cmp byte [edi + 0x36], bl
je 0x10118cc4
mov dword [esp + 0x30], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
test edx, edx
jle 0x10118b17
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], esi
nop dword [eax]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
mov bl, byte [edx]
mov al, bl
cmp al, 0xa4
jne 0x10118972
mov al, byte [edx + 0x26]
cmp al, 0xa5
jne 0x1011897f
mov eax, dword [edx + 0x14]
mov ecx, dword [eax]
mov esi, ecx
jmp 0x1011898a
cmp al, 0x7f
jne 0x101189ae
mov eax, dword [edx + 0x14]
mov ecx, dword [eax]
mov esi, dword [ecx]
cmp esi, 1
jle 0x101189ae
cmp bl, 0x7f
je 0x101189a4
cmp byte [edx + 0x26], 0x7f
je 0x101189a4
mov esi, dword [esp + 0x34]
mov edx, dword [esi + eax + 4]
jmp 0x101189b2
mov esi, dword [esp + 0x34]
mov edx, dword [esi + ecx + 4]
jmp 0x101189b2
mov esi, dword [esp + 0x34]
test dword [edx + 4], 0x100
mov eax, dword [esp + 0x54]
mov esi, dword [esi + eax + 4]
je 0x101189d4
mov ecx, dword [esp + 0x10]
call fcn.10115af0
mov ecx, eax
mov dword [esp + 0x28], ecx
jmp 0x10118a18
test esi, esi
je 0x101189f4
test dword [esi + 4], 0x100
je 0x101189f4
mov ecx, dword [esp + 0x10]
mov edx, esi
call fcn.10115af0
mov ecx, eax
mov dword [esp + 0x28], ecx
jmp 0x10118a18
mov ebx, dword [esp + 0x10]
mov ecx, ebx
call fcn.10115af0
mov ecx, eax
mov dword [esp + 0x28], ecx
test ecx, ecx
jne 0x10118a18
mov edx, esi
mov ecx, ebx
call fcn.10115af0
mov ecx, eax
mov dword [esp + 0x28], eax
movzx edx, word [esi + 0x20]
xor ebx, ebx
mov eax, dword [edi + 4]
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], eax
nop dword [eax]
cmp word [eax], dx
jne 0x10118a93
test ecx, ecx
je 0x10118aa5
mov eax, dword [edi + 0x20]
mov esi, dword [ecx]
mov edi, dword [eax + ebx*4]
mov al, byte [esi]
movzx ecx, byte [edi]
movzx edx, byte [ecx + 0x10262ec0]
movzx ecx, al
movzx ecx, byte [ecx + 0x10262ec0]
sub ecx, edx
jne 0x10118a87
sub edi, esi
nop dword [eax]
test al, al
je 0x10118a83
movzx ecx, byte [edi + esi + 1]
inc esi
movzx edx, byte [ecx + 0x10262ec0]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x10262ec0]
sub ecx, edx
je 0x10118a60
jmp 0x10118a87
test ecx, ecx
je 0x10118aa5
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
inc ebx
add eax, 2
mov dword [esp + 0x48], eax
cmp ebx, dword [esp + 0x18]
jl 0x10118a30
mov edx, dword [esp + 0x18]
cmp ebx, edx
je 0x10118b0f
mov edi, dword [esp + 0x38]
xor edx, edx
mov eax, ebx
xor esi, esi
bts edx, eax
cmp eax, 0x20
cmovae esi, edx
xor edx, esi
cmp eax, 0x40
mov ecx, edx
cmovae esi, edx
and ecx, dword [esp + 0x3c]
mov eax, esi
and eax, edi
or ecx, eax
jne 0x10118b0b
or dword [esp + 0x3c], edx
or edi, esi
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], edi
test eax, eax
je 0x10118aef
mov dword [eax + ecx*4], ebx
add dword [esp + 0x34], 0x18
inc ecx
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x30], ecx
cmp ecx, edx
jl 0x10118960
jmp 0x10118b0f
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x38]
mov eax, edx
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
add ecx, 0xffffffff
adc edx, 0xffffffff
cmp dword [esp + 0x3c], ecx
jne 0x10118cc0
cmp esi, edx
jne 0x10118cc0
mov ebx, dword [esp + 0x20]
mov esi, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], esi
jg 0x10118b6b
push 0
push 0
push 0
mov edx, 0x11
mov ecx, ebx
call fcn.101008a0
add esp, 0xc
mov esi, eax
jmp 0x10118b9e
lea eax, [esi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [edi]
mov ebx, dword [esp + 0x14]
push str.USING_INDEX__s_FOR_IN_OPERATOR
push 0
push ebx
call fcn.10100d20
mov edx, dword [edi + 0x2c]
add esp, 0x10
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x10118bdd
push dword [esp + 0x4c]
mov ecx, edi
push edx
push dword [esp + 0x34]
mov edx, 0x6d
call fcn.101008a0
add esp, 0xc
jmp 0x10118c0c
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx*4], 0x6d
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x1c]
mov ecx, ebx
mov edi, dword [ebx + 8]
call fcn.10128f20
mov edx, eax
test edx, edx
je 0x10118c4a
mov ecx, dword [edi]
cmp byte [ecx + 0x51], 0
je 0x10118c38
push edx
mov edx, 0xfffffff7
call fcn.10101430
add esp, 4
jmp 0x10118c4a
mov eax, dword [edi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
mov eax, dword [edi + 0x1c]
movzx eax, byte [eax]
add eax, 3
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x10118c84
mov eax, dword [ebx + 0x2c]
inc eax
cmp dword [esp + 0x18], 1
mov dword [ebx + 0x2c], eax
mov dword [ecx], eax
jne 0x10118c84
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push eax
call fcn.10118430
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x6c]
mov eax, dword [eax]
cmp byte [eax + 0x51], 0
je 0x10118ca1
mov eax, 0x102ad334
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
jmp 0x10118cc8
lea eax, [edx - 1]
test esi, esi
cmovns eax, esi
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x18]
lea eax, [eax + ecx*4]
jmp 0x10118cc8
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov edi, dword [edi + 0x14]
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x101188e0
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10118da5
jmp 0x10118ce9
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test byte [ebp + 8], 1
je 0x10118d4b
test dword [ecx + 4], 0x800
jne 0x10118d4b
mov esi, dword [ecx + 0xc]
mov edx, ecx
mov dword [ecx + 0xc], 0
lea ecx, [esp + 0x60]
mov byte [esp + 0x74], 1
mov dword [esp + 0x64], fcn.10118000
mov dword [esp + 0x68], 0x10117fa0
mov dword [esp + 0x78], 0
call fcn.10113210
cmp byte [esp + 0x74], 0
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0xc], esi
je 0x10118d44
mov eax, dword [ecx + 0x14]
cmp dword [eax], 2
jg 0x10118d4b
mov ebx, 5
jmp 0x10118dad
mov edi, dword [ebx + 0x80]
xor esi, esi
test byte [ebp + 8], 4
mov eax, 2
mov dword [esp + 0x24], eax
je 0x10118d6a
mov dword [ebx + 0x80], esi
jmp 0x10118d7a
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10118d7a
inc dword [ebx + 0x2c]
mov esi, dword [ebx + 0x2c]
mov dword [eax], esi
push dword [esp + 0x2c]
mov edx, ecx
mov ecx, ebx
call fcn.10119010
add esp, 4
test esi, esi
je 0x10118d9f
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push esi
call fcn.10118430
add esp, 4
mov dword [ebx + 0x80], edi
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
test edx, edx
je 0x10118e88
cmp ebx, 3
je 0x10118e88
cmp ebx, 4
je 0x10118e88
mov ecx, dword [ecx + 0xc]
mov al, byte [ecx]
cmp al, 0xa4
jne 0x10118dd7
mov al, byte [ecx + 0x26]
cmp al, 0xa5
jne 0x10118de2
mov eax, dword [ecx + 0x14]
mov esi, dword [eax]
jmp 0x10118df4
cmp al, 0x7f
jne 0x10118def
mov eax, dword [ecx + 0x14]
mov eax, dword [eax]
mov esi, dword [eax]
jmp 0x10118df4
mov esi, 1
xor ecx, ecx
test esi, esi
jle 0x10118e88
cmp esi, 0x10
jb 0x10118e7b
movaps xmm1, xmmword [0x1027a4c0]
mov eax, esi
and eax, reloc.WS2_32.dll_ntohs
jns 0x10118e18
dec eax
or eax, 0xfffffff0
inc eax
mov edi, esi
sub edi, eax
add edx, 0x20
nop
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
lea edx, [edx + 0x40]
paddd xmm0, xmm1
movups xmmword [edx - 0x60], xmm0
movd xmm0, eax
lea eax, [ecx + 8]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x50], xmm0
movd xmm0, eax
lea eax, [ecx + 0xc]
pshufd xmm0, xmm0, 0
add ecx, 0x10
paddd xmm0, xmm1
movups xmmword [edx - 0x40], xmm0
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x30], xmm0
cmp ecx, edi
jl 0x10118e20
mov edx, dword [esp + 0x58]
cmp ecx, esi
jge 0x10118e88
nop
mov dword [edx + ecx*4], ecx
inc ecx
cmp ecx, esi
jl 0x10118e80
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov dword [ecx], eax
mov eax, ebx
mov ecx, dword [esp + 0x74]
pop ebx
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret