Function at 0xa522e0
Capabilities:
Create thread
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb15ca8
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0xb196ec]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov byte [ebp - 0x338], 0
push 0x103
xor esi, esi
push esi
lea eax, [ebp - 0x337]
push eax
call fcn.00a7ffb0
add esp, 0xc
mov dword [ebp - 0x418], esi
mov edi, 1
mov dword [ebp - 0x40c], edi
mov dword [ebp - 4], esi
mov byte [ebp - 0x128], 0
push 0x103
push esi
lea ecx, [ebp - 0x127]
push ecx
call fcn.00a7ffb0
add esp, 0xc
mov byte [ebp - 0x230], 0
push 0x103
push esi
lea edx, [ebp - 0x22f]
push edx
call fcn.00a7ffb0
add esp, 0xc
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], 2
mov eax, dword [ebx]
cmp eax, esi
je 0xa52597
cmp byte [eax], 0
je 0xa52597
mov dword [ebp - 0x40c], 3
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xa523b5
sub eax, edx
mov dword [ebp - 0x41c], eax
inc eax
push eax
call fcn.00a7a155
add esp, 4
mov dword [ebp - 0x410], eax
cmp eax, esi
je 0xa52597
mov eax, dword [ebx + 0x14]
cmp eax, esi
je 0xa523e6
mov byte [eax], 0
cmp byte [0xbde468], 0
jne 0xa523fb
mov esi, 0xbde468
call fcn.009899d0
xor esi, esi
push 0xbde468
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x128]
call fcn.00960910
mov ecx, dword [ebx + 4]
push ecx
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x338]
mov al, byte [ecx]
mov byte [edx], al
add ecx, edi
add edx, edi
test al, al
jne 0xa52432
mov dword [ebp - 0x40c], 4
mov eax, str.phnl
mov ecx, dword [ebx + 4]
call fcn.0094c3e0
test eax, eax
jne 0xa5245f
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x40c], 5
lea edi, [ebx + 0x1c]
cmp dword [edi], 0
jne 0xa525a5
mov dword [ebp - 0x40c], 6
push 2
mov esi, dword [ebp - 0x414]
push esi
push 2
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x230]
mov edx, edi
call fcn.00a4fa40
add esp, 0x14
test eax, eax
jne 0xa525a5
mov edx, dword [ebp - 0x410]
push edx
call fcn.00a78fec
add esp, 4
mov eax, dword [edi]
push eax
call fcn.00a4ff60
add esp, 4
mov dword [edi], 0
mov dword [ebp - 0x40c], 7
test esi, esi
je 0xa52597
mov ecx, dword [ebx + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0xa52597
mov byte [ebp - 0x408], 0
push 0x3f
push 0
lea edx, [ebp - 0x407]
push edx
call fcn.00a7ffb0
add esp, 0xc
push 0x90
push 0
lea eax, [ebp - 0x3c8]
push eax
call fcn.00a7ffb0
add esp, 0xc
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x408]
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0xa52530
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x3c8]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0xa52543
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x388]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0xa52556
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x348], ecx
mov dword [ebp - 0x33c], 0
lea edx, [ebp - 0x408]
push edx
push 0
push fcn.00a52f40
call fcn.00a791b2
add esp, 0xc
mov dword [ebp - 0x340], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0xa52775
mov dword [ebp - 0x40c], 8
lea esi, [ebx + 0x20]
cmp dword [esi], 0
jne 0xa5265f
mov dword [ebp - 0x40c], 9
push 0
push esi
push 0xffffffffffffffff
push str.SELECT__FROM_Lft_WHERE_DulfDM____LIMIT_1
mov eax, dword [edi]
push eax
call fcn.00a31b90
add esp, 0x14
test eax, eax
jne 0xa525e6
cmp dword [esi], eax
jne 0xa5265f
mov dword [ebp - 0x40c], 0xa
mov ecx, dword [ebp - 0x410]
push ecx
call fcn.00a78fec
add esp, 4
mov edx, dword [edi]
push edx
call fcn.00a4def0
add esp, 4
push eax
push str.SQExecPV2_Failed:__s_n
lea eax, [ebp - 0x230]
push eax
call fcn.00a78f30
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push str._SQT___s
push 0
call fcn.0096a780
add esp, 0xc
call fcn.00a4ff40
mov dword [esi], 0
mov edx, dword [edi]
push edx
call fcn.00a4ff60
add esp, 4
mov dword [edi], 0
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0xa52775
mov dword [ebp - 0x40c], 0xb
mov eax, dword [ebp - 0x41c]
push eax
mov edi, dword [ebp - 0x410]
mov edx, edi
mov ecx, dword [ebx]
call fcn.00a4f7e0
add esp, 4
mov dword [ebp - 0x40c], 0xc
push 0
push 0xffffffffffffffff
push edi
push 1
mov ecx, dword [esi]
push ecx
call fcn.00a07660
add esp, 0x14
mov edx, dword [esi]
push edx
call fcn.00a06b60
add esp, 4
mov dword [ebp - 0x414], eax
cmp eax, 0x64
jne 0xa52707
mov dword [ebp - 0x418], 1
cmp dword [ebx + 0x14], 0
je 0xa52707
mov dword [ebp - 0x40c], 0xd
push 1
mov eax, dword [esi]
push eax
call fcn.00a07160
add esp, 8
mov edi, eax
test edi, edi
je 0xa52707
mov dword [ebp - 0x40c], 0xe
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0xa526f0
sub edx, ecx
push edx
mov edx, dword [ebx + 0x14]
mov ecx, edi
call fcn.00a4f840
add esp, 4
mov dword [ebp - 0x40c], 0xf
mov ecx, dword [esi]
push ecx
call fcn.00a06270
add esp, 4
mov edx, dword [esi]
push edx
call fcn.00a061c0
add esp, 4
mov dword [ebp - 0x40c], 0x10
mov eax, dword [ebp - 0x410]
push eax
call fcn.00a78fec
add esp, 4
jmp 0xa52768
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret