Function at 0x41fdc0
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x612b27
push eax
mov dword fs:[0], esp
sub esp, 0x134
xor eax, eax
xor edx, edx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x150]
mov ebp, ecx
xor ecx, ecx
mov ax, word [esi + 6]
mov cx, word [esi + 2]
mov dx, word [esi]
push edi
push eax
push ecx
lea edi, [ebp + 0x1b8]
push edx
push str._04d__02d__02d
push edi
call fcn.004ec2c0
mov ecx, dword [ebp + 0x1a4]
add esp, 0x14
mov eax, dword [ecx]
push edi
call dword [eax + 0x2cc]
mov ecx, dword [ebp + 0x1a0]
call fcn.0048d950
mov eax, dword [ebp + 0x1b0]
xor ebx, ebx
cmp eax, ebx
je 0x42014f
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x25], ecx
lea edi, [esp + 0x45]
mov dword [esp + 0x29], ecx
mov byte [esp + 0x44], bl
mov byte [esp + 0x2d], cl
mov ecx, 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edx, edx
xor ecx, ecx
mov dx, word [esi + 6]
mov cx, word [esi]
xor eax, eax
push edx
mov ax, word [esi + 2]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
sub ecx, 0x7d0
push eax
push ecx
lea edx, [esp + 0x30]
push str._02d__02d__02d
push edx
mov byte [esp + 0x38], bl
call esi
lea eax, [esp + 0x38]
lea ecx, [esp + 0x58]
push eax
push str.SELECT__FROM_LogData_WHERE_Date___s
push ecx
call esi
add esp, 0x20
lea esi, [ebp + 0x1c0]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [esp + 0x30]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x1bc]
lea eax, [esp + 0x50]
push edx
push eax
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x48], ebx
call sub.MYSQL.dll_sqlite3_get_table
add esp, 0x18
cmp eax, ebx
je 0x41fef4
mov edx, dword [esp + 0x10]
push edx
call sub.MYSQL.dll_sqlite3_free_table
jmp 0x42014c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x41ff12
mov eax, dword [esp + 0x10]
push eax
call sub.MYSQL.dll_sqlite3_free_table
jmp 0x42014c
mov ecx, dword [0x6e0ea0]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ecx
mov esi, 1
mov dword [esp + 0x14c], ebx
cmp eax, esi
jl 0x420122
mov edx, dword [0x65329c]
mov ecx, esi
imul ecx, dword [esp + 0x14]
mov eax, dword [0x72598c]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edx + ecx*4]
lea ecx, [esp + 0x44]
push eax
call fcn.004eabd0
lea ecx, [esi - 1]
push eax
push ecx
mov ecx, dword [ebp + 0x1a0]
mov byte [esp + 0x154], 1
call fcn.0048dcf0
mov edx, dword [esp + 0x3c]
mov edi, eax
mov byte [esp + 0x14c], bl
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x41ff9a
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x41ff9a
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [0x65329c]
mov edx, esi
imul edx, dword [esp + 0x14]
mov ecx, dword [0x72598c]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [eax + edx*4 + 4]
push ecx
lea ecx, [esp + 0x44]
call fcn.004eabd0
mov ecx, dword [ebp + 0x1a0]
push 0xffffffffffffffff
push eax
push 1
push edi
mov byte [esp + 0x15c], 2
call fcn.0048c9d0
mov edx, dword [esp + 0x38]
mov byte [esp + 0x14c], bl
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x420000
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x420000
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [0x65329c]
mov edx, esi
imul edx, dword [esp + 0x14]
mov ecx, dword [0x72598c]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [eax + edx*4 + 8]
push ecx
lea ecx, [esp + 0x4c]
call fcn.004eabd0
mov ecx, dword [ebp + 0x1a0]
push 0xffffffffffffffff
push eax
push 2
push edi
mov byte [esp + 0x15c], 3
call fcn.0048c9d0
mov edx, dword [esp + 0x40]
mov byte [esp + 0x14c], bl
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x420066
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x420066
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [0x65329c]
mov edx, esi
imul edx, dword [esp + 0x14]
mov ecx, dword [0x72598c]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [eax + edx*4 + 0x10]
push ecx
lea ecx, [esp + 0x40]
call fcn.004eabd0
mov ecx, dword [ebp + 0x1a0]
push 0xffffffffffffffff
push eax
push 4
push edi
mov byte [esp + 0x15c], 4
call fcn.0048c9d0
mov edx, dword [esp + 0x34]
mov byte [esp + 0x14c], bl
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x4200cc
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x4200cc
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, esi
mov edx, dword [esp + 0x10]
imul ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
mov eax, dword [edx + ecx*4 + 0xc]
push 0x6c28bc
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebp
call fcn.004204a0
mov ecx, dword [ebp + 0x1a0]
lea eax, [esp + 0x1c]
push 0xffffffffffffffff
push eax
push 3
push edi
call fcn.0048c9d0
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jle 0x41ff34
mov ecx, dword [esp + 0x10]
push ecx
call sub.MYSQL.dll_sqlite3_free_table
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x42014f
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x42014f
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 4