Function at 0x42ba34
Capabilities:
Reference sql statements

Disassembly:
push 0x78
mov eax, 0x484d7f
call fcn.00483193
mov edi, ecx
mov dword [ebp - 0x5c], edi
mov ebx, dword [ebp + 8]
xor edx, edx
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x58], edx
mov byte [ebp - 0x54], dl
mov dword [ebp - 0x50], 0x80004005
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0042fdb8
test al, al
jne 0x4914ff
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0043d040
mov eax, dword [eax]
test eax, eax
js 0x4914ae
mov eax, dword [ebp - 0x70]
push 1
push 0x403a58
push eax
lea ecx, [eax + 8]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x60], ecx
push eax
call fcn.0042b530
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x64], edi
test edi, edi
js 0x491460
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x60]
push edi
push 0x4057b0
push esi
push eax
call fcn.0046a583
xor esi, esi
cmp dword [eax], esi
jl 0x49127b
mov eax, dword [ebp - 0x5c]
add eax, 0x7c
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
pop ecx
test eax, eax
jne 0x4913aa
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x84]
add eax, 0xc4
mov byte [ebp - 4], 0x11
push edi
push ecx
mov ecx, eax
mov dword [ebp - 0x60], eax
call fcn.00474b56
mov edi, dword [ebp - 0x7c]
cmp byte [edi + 0xd], 0
je 0x4913b1
push 0x38
lea eax, [ebp - 0x48]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
mov dword [ebp - 0x20], eax
push 0xf
pop ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x30], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x68]
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0x12
push eax
call fcn.00474a3c
mov edi, dword [ebp - 0x80]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x11
call fcn.0043baa3
lea ecx, [ebp - 0x48]
call fcn.0043baa3
mov ecx, dword [ebp - 0x74]
mov edx, ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x42bb89
sub edx, esi
push edx
push ecx
lea ecx, [edi + 0x14]
call fcn.0043982f
xor esi, esi
push dword [ebp - 0x74]
lea ecx, [edi + 0x14]
call fcn.004715f8
test al, al
je 0x4913c4
push esi
push 0x4017cc
lea ecx, [edi + 0x2c]
call fcn.0043982f
mov eax, dword [ebp + 0x18]
mov ebx, esi
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x48], eax
mov eax, esi
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x60], eax
xor edi, edi
mov ecx, eax
inc edi
shl edi, cl
mov ecx, edi
call fcn.0042d6fc
and eax, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x5c]
cmp eax, edi
je 0x42bc61
mov eax, dword [ebp - 0x60]
add ebx, 0xc
inc eax
mov dword [ebp - 0x60], eax
cmp ebx, 0x180
jb 0x42bbd5
mov ebx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x64]
mov dword [ebx], eax
lea eax, [edx + 0x7c]
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
pop ecx
mov byte [ebp - 4], 0x16
xor esi, esi
mov ecx, dword [ebp - 0x58]
mov eax, esi
test ecx, ecx
jne 0x42bc80
push eax
push 0x401d3c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x58], esi
push eax
lea ecx, [ebp - 0x58]
call fcn.0043e9a0
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x6c]
test edi, edi
je 0x42bc57
mov dword [ebp - 4], 0x17
mov eax, esi
lock xadd dword [edi + 4], eax
je 0x49143e
mov eax, ebx
call fcn.0048313d
ret 0x1c
lea ecx, [edx + 0xcc]
add ecx, ebx
mov edi, dword [ecx + 4]
cmp edi, dword [ecx + 8]
jne 0x42bc95
push esi
push edi
call fcn.004711a4
mov edx, dword [ebp - 0x5c]
jmp 0x42bbed
push ecx
call fcn.00447f1c
pop ecx
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.0043d242
mov eax, dword [eax]
jmp 0x42bc21
mov eax, dword [esi]
mov dword [edi], eax
add dword [ecx + 4], 4
jmp 0x42bbed
mov eax, dword [ebp - 0x60]
cmp edi, dword [eax]
je 0x42bb27
jmp 0x42bb9e
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
add eax, 0x258
inc ecx
lock xadd dword [eax], ecx
inc ecx
push esi
push 0x40b0c4
push dword [ebp - 0x70]
lea eax, [ebp - 0x64]
mov dword [edi], ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.0042b530
mov eax, dword [ebp - 0x64]
test eax, eax
js 0x49133f
push 0x4057b0
push dword [ebp - 0x74]
lea eax, [ebp - 0x4c]
push dword [edi]
lea ecx, [ebp - 0x58]
push eax
call fcn.004f5c5d
mov edi, dword [eax]
mov dword [ebp - 0x64], edi
test edi, edi
jns 0x491337
mov dword [ebx], edi
mov eax, esi
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x58], eax
je 0x4912ee
push dword [ebp - 0x58]
call fcn.00447f1c
pop ecx
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.0043d242
mov eax, dword [eax]
push eax
push 0x401d3c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x58], esi
push eax
lea ecx, [ebp - 0x58]
call fcn.0043e9a0
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x6c]
test edi, edi
je 0x42bc57
mov dword [ebp - 4], 0xf
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x42bc57
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov byte [ebp - 4], 0x10
jmp 0x491448
mov edi, dword [ebp - 0x68]
jmp 0x42bae3
mov dword [ebx], eax
mov eax, esi
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x58], eax
je 0x491361
push dword [ebp - 0x58]
call fcn.00447f1c
pop ecx
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.0043d242
mov eax, dword [eax]
push eax
push 0x401d3c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x58], esi
push eax
lea ecx, [ebp - 0x58]
call fcn.0043e9a0
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x6c]
test edi, edi
je 0x42bc57
mov dword [ebp - 4], 0xc
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x42bc57
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov byte [ebp - 4], 0xd
jmp 0x491448
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
cmp eax, dword [edi + 0x10]
jb 0x42bb27
jmp 0x42bca2
mov eax, dword [ebp - 0x5c]
add eax, 0x7c
mov dword [ebx], 0x80070057
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
pop ecx
mov byte [ebp - 4], 0x13
mov eax, esi
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x4913f8
push ecx
call fcn.00447f1c
pop ecx
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.0043d242
mov eax, dword [eax]
push eax
push 0x401d3c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x58], esi
push eax
lea ecx, [ebp - 0x58]
call fcn.0043e9a0
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x6c]
test edi, edi
je 0x42bc57
mov dword [ebp - 4], 0x14
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x42bc57
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov byte [ebp - 4], 0x15
jmp 0x491448
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov byte [ebp - 4], 0x18
lock xadd dword [edi + 8], esi
dec esi
jne 0x42bc57
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x42bc57
mov dword [ebx], edi
xor esi, esi
mov byte [ebp - 4], 8
push esi
push 0x401d3c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x58], esi
push eax
lea ecx, [ebp - 0x58]
call fcn.0043e9a0
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x6c]
test edi, edi
je 0x42bc57
mov dword [ebp - 4], 9
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x42bc57
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov byte [ebp - 4], 0xa
jmp 0x491448
mov dword [ebx], eax
xor esi, esi
mov byte [ebp - 4], 5
push esi
push 0x401d3c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x58], esi
push eax
lea ecx, [ebp - 0x58]
call fcn.0043e9a0
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x6c]
test edi, edi
je 0x42bc57
mov dword [ebp - 4], 6
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x42bc57
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov byte [ebp - 4], 7
jmp 0x491448
mov dword [ebx], 0x80070057
push edx
push 0x401d3c
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], edx
call fcn.0043e9a0
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x6c]
test edi, edi
je 0x42bc57
mov dword [ebp - 4], 3
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x42bc57
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov byte [ebp - 4], 4
lock xadd dword [edi + 8], esi
dec esi
jne 0x42bc57
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
jmp 0x42bc57