Function at 0x42c330
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x10b0
call fcn.0045ec70
mov eax, dword [0x476ecf4]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x42c356
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b0
ret
mov eax, dword [esp + 0x10c4]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x10c8]
lea eax, [eax + edx*2]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*8]
lea ecx, [esp + 0x98]
mov eax, dword [edx*4 + 0x65937c]
lea edx, [esp + 0x28]
push eax
push ecx
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.004265e0
add esp, 0x24
test eax, eax
jne 0x42c3c3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b0
ret
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x476ed38
lea eax, [esp + 0x8c4]
push str.SELECT_dsholy_FROM_GATC__sTHOLY
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x8c0]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebp, eax
xor eax, eax
cmp ebp, ebx
sete al
cmp eax, ebx
mov dword [0x476ecf4], eax
jne 0x42c528
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
test al, al
jne 0x42c528
cmp byte [ebp + 4], bl
jne 0x42c528
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x24]
test al, al
jne 0x42c528
cmp dword [esp + 0x20], ebx
jne 0x42c528
mov edx, dword [ebp]
lea eax, [esp + 0x78]
push 1
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [eax + 4]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x48]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
call fcn.00445280
lea ecx, [esp + 0x48]
push 2
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0045eb70
lea edi, [esp + 0x57]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x22], bl
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
call fcn.0045f57e
lea edx, [esp + 0x2c]
mov esi, eax
push edx
call fcn.0045f57e
add esp, 0x14
cmp esi, eax
jne 0x42c517
lea eax, [esp + 0x2c]
push eax
call fcn.0045f57e
lea ecx, [esp + 0x1c]
mov esi, eax
push ecx
call fcn.0045f57e
add esp, 8
cmp esi, eax
jne 0x42c517
mov dword [esp + 0x20], 1
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x20]
cmp byte [ebp + 4], bl
je 0x42c443
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x1c]
cmp ebp, ebx
je 0x42c53d
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov eax, dword [esp + 0x10cc]
lea ecx, [esp + 0x8c0]
push eax
push 0x476ed38
push str.SELECT_fromtime_totime_dom_lun_mar_mer_gio_ven_sab_fes_FROM_GATC__sTIME_WHERE_idtime_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x8c0]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebp, eax
xor eax, eax
cmp ebp, ebx
sete al
cmp eax, ebx
mov dword [0x476ecf4], eax
jne 0x42c836
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
test al, al
jne 0x42c836
cmp byte [ebp + 4], bl
jne 0x42c821
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x24]
test al, al
jne 0x42c821
cmp dword [esp + 0x10], ebx
jne 0x42c821
mov edx, dword [ebp]
lea eax, [esp + 0x78]
push 1
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
call fcn.00445280
mov edx, dword [ebp]
lea eax, [esp + 0x88]
push 2
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
call fcn.00445280
mov edx, dword [ebp]
push 3
mov ecx, ebp
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x58], eax
mov eax, dword [ebp]
push 4
mov ecx, ebp
call dword [eax + 0x10]
call fcn.0045f9d8
mov edx, dword [ebp]
push 5
mov ecx, ebp
mov dword [esp + 0x60], eax
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x60], eax
mov eax, dword [ebp]
push 6
mov ecx, ebp
call dword [eax + 0x10]
call fcn.0045f9d8
mov edx, dword [ebp]
push 7
mov ecx, ebp
mov dword [esp + 0x68], eax
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x68], eax
mov eax, dword [ebp]
push 8
mov ecx, ebp
call dword [eax + 0x10]
call fcn.0045f9d8
mov edx, dword [ebp]
push 9
mov ecx, ebp
mov dword [esp + 0x70], eax
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x70], eax
mov eax, dword [ebp]
push 0xa
mov ecx, ebp
call dword [eax + 0x10]
call fcn.0045f9d8
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], eax
cmp ecx, ebx
je 0x42c6f3
cmp eax, ebx
jne 0x42c73f
jmp 0x42c810
lea ecx, [esp + 0x1c]
push ecx
call fcn.0045f57e
add esp, 4
lea edx, [esp + 0x18]
push eax
push edx
call fcn.0045f57e
add esp, 4
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0045f57e
add esp, 4
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.0045f57e
add esp, 4
push eax
call fcn.0045ad10
mov ecx, dword [esp + eax*4 + 0x68]
add esp, 0x10
cmp ecx, ebx
je 0x42c810
lea edx, [esp + 0x24]
push edx
call fcn.0045f57e
lea eax, [eax + eax*4]
lea esi, [eax + eax*4]
lea eax, [esp + 0x38]
push eax
call fcn.0045f57e
lea eax, [eax + esi*4]
lea ecx, [esp + 0x30]
push ecx
lea eax, [eax + eax*4]
lea esi, [eax + eax*4]
call fcn.0045f57e
lea edi, [eax + esi*4]
lea edx, [esp + 0x5c]
push 2
lea eax, [esp + 0xd0]
push edx
push eax
call fcn.0045eb70
lea ecx, [esp + 0xd8]
mov byte [esp + 0xda], bl
push ecx
call fcn.0045f57e
lea eax, [eax + eax*4]
lea edx, [esp + 0x6f]
push edx
lea esi, [eax + eax*4]
call fcn.0045f57e
lea eax, [eax + esi*4]
push 2
lea ecx, [esp + 0xe4]
lea eax, [eax + eax*4]
lea esi, [eax + eax*4]
lea eax, [esp + 0x64]
push eax
push ecx
shl esi, 2
call fcn.0045eb70
lea edx, [esp + 0xec]
mov byte [esp + 0xee], bl
push edx
call fcn.0045f57e
lea eax, [eax + eax*4]
lea ebx, [eax + eax*4]
lea eax, [esp + 0x73]
push eax
call fcn.0045f57e
lea eax, [eax + ebx*4]
add esp, 0x34
cmp esi, edi
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [ecx*4 + 0x3b]
jg 0x42c80e
cmp edi, eax
jg 0x42c80e
mov dword [esp + 0x10], 1
xor ebx, ebx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x20]
cmp byte [ebp + 4], bl
je 0x42c5b2
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x1c]
cmp ebp, ebx
je 0x42c836
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b0
ret