Function at 0x5c7020
Capabilities:
Create thread
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x3e0]
sub esp, 0x3e0
push 0xfffffffffffffffe
push 0x6754b0
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x3dc], 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, dword [ebp + 0x3e8]
mov byte [ebp + 0xd0], 0
push 0x103
xor esi, esi
push esi
lea eax, [ebp + 0xd1]
push eax
call fcn.005dfd60
add esp, 0xc
mov dword [ebp - 0x28], esi
mov edi, 1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], esi
mov byte [ebp + 0x2d8], 0
push 0x103
push esi
lea ecx, [ebp + 0x2d9]
push ecx
call fcn.005dfd60
mov byte [ebp + 0x1d4], 0
push 0x103
push esi
lea edx, [ebp + 0x1d5]
push edx
call fcn.005dfd60
add esp, 0x18
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 2
mov eax, dword [ebx]
cmp eax, esi
je 0x5c72ae
cmp byte [eax], 0
je 0x5c72ae
mov dword [ebp - 0x1c], 3
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5c70f2
sub eax, edx
mov dword [ebp - 0x2c], eax
inc eax
push eax
call fcn.005e20e4
add esp, 4
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x5c72ae
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x5c711f
mov byte [eax], 0
cmp byte [0x761560], 0
jne 0x5c7132
push 0x761560
call fcn.00513fd0
push 0x761560
lea eax, [ebp + 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp + 0x2d8]
push ecx
call fcn.004e24e0
add esp, 4
mov edx, dword [ebx + 4]
push edx
lea eax, [ebp + 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebx + 4]
lea edx, [ebp + 0xd0]
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
add ecx, edi
add edx, edi
test al, al
jne 0x5c7170
mov dword [ebp - 0x1c], 4
push str.phnl
mov ecx, dword [ebx + 4]
push ecx
call fcn.004dd6e0
add esp, 8
test eax, eax
jne 0x5c719b
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 5
lea edi, [ebx + 0x1c]
cmp dword [edi], 0
jne 0x5c72bc
mov dword [ebp - 0x1c], 6
push 2
mov edx, dword [ebp - 0x20]
push edx
push 2
lea eax, [ebp - 0x30]
push eax
push 0
lea ecx, [ebp + 0x1d4]
push ecx
push edi
lea edx, [ebp + 0x2d8]
push edx
call fcn.005c4e10
add esp, 0x20
test eax, eax
jne 0x5c72bc
push esi
call fcn.005e0865
mov eax, dword [edi]
push eax
call fcn.005c51b0
add esp, 8
mov dword [edi], 0
mov dword [ebp - 0x1c], 7
cmp dword [ebp - 0x20], 0
je 0x5c72ae
mov ecx, dword [ebx + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x5c72ae
mov byte [ebp], 0
push 0x3f
push 0
lea edx, [ebp + 1]
push edx
call fcn.005dfd60
push 0x90
push 0
lea eax, [ebp + 0x40]
push eax
call fcn.005dfd60
add esp, 0x18
mov ecx, dword [ebx + 4]
lea edx, [ebp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x5c7247
mov ecx, dword [ebx + 8]
lea edx, [ebp + 0x40]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x5c7257
mov ecx, dword [ebx + 0xc]
lea edx, [ebp + 0x80]
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x5c7270
mov ecx, dword [ebx + 0x10]
mov dword [ebp + 0xc0], ecx
mov dword [ebp + 0xcc], 0
lea edx, [ebp]
push edx
push 0
push fcn.005c6680
call fcn.005e07ac
add esp, 0xc
mov dword [ebp + 0xc8], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x5c7440
mov dword [ebp - 0x1c], 8
lea esi, [ebx + 0x20]
cmp dword [esi], 0
jne 0x5c735b
mov dword [ebp - 0x1c], 9
push 0
push esi
push 0xffffffffffffffff
push str.SELECT__FROM_Lft_WHERE_DulfDM____LIMIT_1
mov eax, dword [edi]
push eax
call fcn.005a8d50
add esp, 0x14
test eax, eax
jne 0x5c72f3
cmp dword [esi], eax
jne 0x5c735b
mov dword [ebp - 0x1c], 0xa
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.005e0865
mov edx, dword [edi]
push edx
call fcn.00584f10
push eax
push str.SQExecPV2_Failed:__s_n
lea eax, [ebp + 0x1d4]
push eax
call fcn.005dfb23
lea ecx, [ebp + 0x1d4]
push ecx
push str._SQT___s
push 0
call fcn.004f0f30
push esi
call fcn.005c5190
mov dword [esi], 0
mov edx, dword [edi]
push edx
call fcn.005c51b0
add esp, 0x28
mov dword [edi], 0
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x5c7440
mov dword [ebp - 0x1c], 0xb
mov eax, dword [ebp - 0x2c]
push eax
mov edi, dword [ebp - 0x24]
push edi
mov ecx, dword [ebx]
push ecx
call fcn.005c4b80
mov dword [ebp - 0x1c], 0xc
push 0
push 0xffffffffffffffff
push edi
push 1
mov edx, dword [esi]
push edx
call fcn.00592e20
mov eax, dword [esi]
push eax
call fcn.005af3a0
add esp, 0x24
mov dword [ebp - 0x30], eax
cmp eax, 0x64
jne 0x5c73e7
mov dword [ebp - 0x28], 1
cmp dword [ebx + 0x14], 0
je 0x5c73e7
mov dword [ebp - 0x1c], 0xd
push 1
mov ecx, dword [esi]
push ecx
call fcn.00592c00
add esp, 8
mov edi, eax
test edi, edi
je 0x5c73e7
mov dword [ebp - 0x1c], 0xe
mov ecx, edi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5c73d0
sub ecx, edx
push ecx
mov edx, dword [ebx + 0x14]
push edx
push edi
call fcn.005c4bf0
add esp, 0xc
mov dword [ebp - 0x1c], 0xf
mov eax, dword [esi]
push eax
call fcn.0056d8f0
mov ecx, dword [esi]
push ecx
call fcn.005a7910
mov dword [ebp - 0x1c], 0x10
mov edx, dword [ebp - 0x24]
push edx
call fcn.005e0865
add esp, 0xc
jmp 0x5c7436
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3dc]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0x3e0
mov esp, ebp
pop ebp
ret