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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x10310644]
xor eax, esp
mov dword [esp + 0x84], eax
mov dword [esp + 0x10], ecx
mov eax, edx
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 8]
push esi
mov dword [esp + 0x2c], ecx
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x58], ecx
mov ecx, eax
push 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], 0xffffffff
movaps xmmword [esp + 0x64], xmm0
movq qword [esp + 0x74], xmm0
call fcn.1012ff90
add esp, 4
test eax, eax
jne 0x101305af
mov esi, dword [esp + 0x10]
lea eax, [esi + esi*2]
shl eax, 3
mov dword [esp + 0xc], eax
call sym.BasicBusinessConfigCenter.dll_sqlite3_initialize
test eax, eax
jne 0x101305aa
push eax
push dword [esp + 0x10]
call fcn.100961d0
add esp, 8
mov dword [esp + 0x70], eax
test eax, eax
je 0x101305aa
push dword [esp + 0xc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov edx, 0x101300e0
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x60], ecx
mov ecx, dword [ecx + 0x10]
push eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x78], 0xffffffff
call fcn.1012fef0
add esp, 4
mov dword [esp + 0x5c], eax
test eax, eax
jne 0x10130586
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x10130298
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x10]
add eax, 0xc
mov dword [esp + 0xc], eax
cmp dword [eax], 0
je 0x1013028c
xor ecx, ecx
mov eax, esi
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [esp + 0xc]
cmovae edx, ecx
or dword [edi], ecx
or dword [edi + 4], edx
mov ecx, dword [esp + 0x10]
inc esi
add eax, 0x18
mov dword [esp + 0xc], eax
cmp esi, ecx
jl 0x10130263
mov ecx, dword [esp + 0x30]
or edi, 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov ecx, dword [esp + 0x6c]
jmp 0x101302b4
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x74], 0
jge 0x101302fb
xor edi, edi
mov dword [esp + 0x74], 0
test ecx, ecx
jle 0x1013038e
xor esi, esi
nop
mov eax, dword [esp + 0x70]
push dword [esp + 0x68]
lea edx, [eax + 8]
lea ecx, [eax + 0xc]
add edx, esi
add ecx, esi
call fcn.10130060
mov ecx, dword [esp + 0x70]
inc edi
add esp, 4
add esi, 0x18
cmp edi, ecx
jl 0x101302d0
jmp 0x1013038e
mov edx, closesocket
test ecx, ecx
jle 0x10130580
mov esi, dword [esp + 0x70]
add esi, 8
nop
cmp dword [esi + 4], 0
je 0x1013031b
cmp dword [esi], edx
cmovl edx, dword [esi]
add esi, 0x18
sub ecx, 1
jne 0x10130310
cmp edx, 0x7fffffff
je 0x10130580
mov eax, edx
xor edi, edi
sub eax, dword [esp + 0x68]
inc eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x74], eax
lea eax, [edx + 1]
xor edx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], edx
nop dword [eax]
mov esi, dword [esp + 0x70]
push dword [esp + 0x1c]
add esi, edx
lea edx, [esi + 8]
lea ecx, [esi + 0xc]
call fcn.10130060
add esp, 4
lea edx, [esi + 0x10]
lea ecx, [esi + 0x14]
push dword [esp + 0x18]
call fcn.10130060
mov edx, dword [esp + 0x10]
inc edi
mov ecx, dword [esp + 0x70]
add edx, 0x18
add esp, 4
mov dword [esp + 0xc], edx
cmp edi, ecx
jl 0x10130350
mov edi, dword [esp + 0x74]
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
xor esi, esi
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
movlpd qword [esp + 0x38], xmm0
mov edx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
test ecx, ecx
jle 0x1013054c
mov dword [esp + 0xc], edx
mov edx, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
nop dword [eax]
add edx, dword [esp + 0x70]
mov dword [esp + 0x4c], edx
mov eax, dword [edx + 0x14]
mov dword [esp + 0x54], eax
test eax, eax
je 0x10130528
mov eax, dword [esp + 0x68]
mov edx, dword [edx + 0x10]
add eax, edi
mov dword [esp + 0x18], edx
cmp edx, eax
jge 0x10130528
mov eax, dword [esp + 0x24]
and eax, 0x8000003f
jns 0x1013041c
dec eax
or eax, 0xffffffc0
inc eax
mov dword [esp + 0x40], eax
cmp edx, edi
jl 0x10130524
xor ecx, ecx
xor esi, esi
bts esi, eax
cmp eax, 0x20
cmovae ecx, esi
xor esi, ecx
cmp eax, 0x40
mov eax, edx
cmovae ecx, esi
sub eax, edi
xor edi, edi
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x20]
bts edi, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, edi
xor edi, edx
cmp eax, 0x40
mov eax, dword [esp + 0x10]
cmovae edx, edi
or eax, dword [ebp + 0x10]
or ecx, dword [ebp + 0xc]
and eax, dword [esp + 0x48]
and ecx, esi
or ecx, eax
mov dword [esp + 0x38], edx
mov eax, 1
jne 0x10130480
mov eax, 0x3e8
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x48]
or dword [esp + 0x20], esi
xor esi, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
cmp dword [eax], esi
jle 0x101304be
nop
mov eax, edi
mov ecx, esi
call fcn.101b0c20
or dword [esp + 0xc], eax
inc esi
mov eax, dword [esp + 0x4c]
or dword [esp + 0x2c], edx
mov edx, dword [esp + 0x38]
cmp esi, dword [eax]
jl 0x101304a0
mov esi, dword [esp + 0x54]
mov al, byte [esi]
test al, 0xfe
je 0x1013051c
test al, al
jns 0x101304dd
lea edx, [esp + 0x50]
mov ecx, esi
call fcn.1011b4f0
mov ecx, dword [esp + 0x50]
jmp 0x101304e9
movzx ecx, al
mov eax, 1
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x18]
add esi, eax
mov eax, dword [esp + 0x68]
add edx, 0xfffffffe
mov edi, dword [esp + 0x1c]
add edx, ecx
add eax, edi
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x14]
cmp edx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], esi
jl 0x10130420
jmp 0x10130524
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
inc eax
add edx, 0x18
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
cmp eax, ecx
jl 0x101303e0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0xc]
cmp esi, dword [esp + 0x34]
jle 0x101302b0
mov esi, dword [esp + 0x30]
mov dword [esi + 4], edi
mov edi, esi
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], eax
mov edi, dword [esp + 0x14]
mov dword [esp + 0x34], edi
jmp 0x101302b4
mov eax, dword [esp + 0x58]
mov dword [eax], edi
push dword [esp + 0x70]
call sym.BasicBusinessConfigCenter.dll_sqlite3_free
mov eax, dword [esp + 0x60]
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.101afab5
mov esp, ebp
pop ebp
ret
mov eax, 7
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.101afab5
mov esp, ebp
pop ebp
ret