Function at 0x10158420
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10291da1
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x10314008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x44], 0
xorps xmm0, xmm0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x20], bl
test esi, esi
je 0x101584a1
mov eax, dword [esi]
test eax, eax
je 0x1015849b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10158495
cmp eax, 0x80
je 0x10158495
xor bl, bl
jmp 0x1015849b
mov byte [esi + 4], 1
mov bl, 1
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x20], bl
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.10158150
mov edi, eax
test edi, edi
je 0x10158611
mov ecx, edi
call fcn.10169960
test al, al
je 0x10158611
push 1
push 0
push dword [ebp - 0x48]
lea eax, [ebp - 0x3c]
push eax
call fcn.10158680
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
xor bl, bl
call fcn.10169c50
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
cmp dword [ebp - 0x4c], 0
je 0x101585e5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
mov edx, dword [ebp - 0x48]
lea edx, [edx + 4]
call fcn.1017c4e0
mov dword [ebp - 0x44], 1
cmp dword [eax + 0x14], 8
jb 0x10158521
mov eax, dword [eax]
push eax
push str.url_info
lea eax, [ebp - 0x3c]
push str.SELECT_MAX_url_id__FROM__s_WHERE_url_s
push eax
call fcn.100fece0
mov eax, 1
add esp, 0x10
mov dword [ebp - 0x44], eax
and eax, 0xfffffffe
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.10004cc0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 1
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.10169cf0
test al, al
je 0x101585a2
cmp byte [ebp - 0x14], 0
jne 0x101585a2
push ecx
push 0
lea ecx, [ebp - 0x1c]
call fcn.10169e80
mov ecx, dword [ebp - 0x4c]
mov bl, 1
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x101585b7
push eax
call fcn.101cd270
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 1
mov byte [ebp - 4], 1
test eax, eax
je 0x101585da
push eax
call fcn.101cd270
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 1
mov ecx, edi
test bl, bl
je 0x101585fe
call fcn.10169a70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.10004cc0
jmp 0x10158613
call fcn.10169b60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.10004cc0
jmp 0x10158613
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10158635
cmp byte [ebp - 0x3d], 0
je 0x10158635
mov eax, dword [esi]
test eax, eax
je 0x10158631
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x24], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1025b3e6
mov esp, ebp
pop ebp
ret 8