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

Disassembly:
mov eax, 0x49e4c
call fcn.0045ec70
mov eax, dword [0x476ecf4]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x4326a6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x49e4c
ret
mov eax, dword [esp + 0x49e60]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x49e64]
lea eax, [eax + edx*2]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
lea ecx, [esp + 0xac]
shl eax, 2
mov dword [esp + 0x28], eax
mov edx, dword [eax + 0x65937c]
lea eax, [esp + 0x14c]
push edx
push eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x5c]
push eax
lea edx, [esp + 0x64]
push ecx
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x5c]
push eax
push ecx
call fcn.004265e0
add esp, 0x24
test eax, eax
jne 0x43271c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x49e4c
ret
lea edx, [esp + 0x1f4]
push esi
lea eax, [esp + 0x88]
push edx
lea ecx, [esp + 0x94]
push eax
lea edx, [esp + 0xa0]
push ecx
lea eax, [esp + 0xac]
push edx
lea ecx, [esp + 0x94]
push eax
lea edx, [esp + 0xb0]
push ecx
lea eax, [esp + 0xac]
push edx
push eax
call fcn.004265e0
add esp, 0x24
test eax, eax
jne 0x432774
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x49e4c
ret
mov ebx, dword [esp + 0x49e6c]
mov ebp, dword [esp + 0x49e68]
cmp ebx, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0xa0], esi
push 0xa
je 0x4327a2
lea ecx, [ebp + 8]
lea edx, [esp + 0x78]
push ecx
push edx
jmp 0x4327ab
lea eax, [ebp + 0xc]
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.0045eb70
mov edi, str.2000_01_01_00:00:00
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xb0]
mov eax, ecx
mov esi, edi
mov edi, edx
push str.SQL_Server
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov byte [esp + 0x82], 0
and ecx, 3
push 0x517fac
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x432929
call fcn.0045f6d0
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
test eax, eax
jne 0x43281e
push str.SQL_Native_Client
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
je 0x43284e
lea ecx, [esp + 0x48]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
lea ecx, [esp + 0xc8]
push str._s__s__s_s__s:_s:00
push ecx
call ebx
add esp, 0x20
push str.PostgreSQL
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
je 0x432894
lea edx, [esp + 0x48]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x58]
push ecx
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x50]
push eax
push ecx
lea edx, [esp + 0xc8]
push str._s_s__s__s__s:_s:00
push edx
call ebx
add esp, 0x20
push str.Oracle
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
je 0x4328da
lea eax, [esp + 0x48]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x58]
push edx
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x50]
push ecx
push edx
lea eax, [esp + 0xc8]
push str.timestamp_s_s__s__s__s:_s:00
push eax
call ebx
add esp, 0x20
push str.MySQL
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
je 0x432aa3
lea ecx, [esp + 0x48]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0xc8]
push 0x48467c
push ecx
call ebx
add esp, 0x20
jmp 0x432aa3
call fcn.0045f6d0
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
test eax, eax
jne 0x432951
push str.SQL_Native_Client
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
je 0x432995
movsx edx, byte [ebp + 0x1f]
movsx eax, byte [ebp + 0x1e]
movsx ecx, byte [ebp + 0x1d]
push edx
push eax
movsx edx, byte [ebp + 0x1c]
movsx eax, byte [ebp + 0x17]
push ecx
push edx
movsx ecx, byte [ebp + 0x16]
movsx edx, byte [ebp + 0x19]
push eax
push ecx
movsx eax, byte [ebp + 0x18]
movsx ecx, byte [ebp + 0x1b]
push edx
push eax
movsx edx, byte [ebp + 0x1a]
push ecx
push edx
lea eax, [esp + 0xd8]
push str._c_c__c_c_20_c_c__c_c:_c_c:00
push eax
call ebx
add esp, 0x30
push str.PostgreSQL
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
je 0x4329ef
movsx ecx, byte [ebp + 0x1f]
movsx edx, byte [ebp + 0x1e]
movsx eax, byte [ebp + 0x1d]
push ecx
push edx
movsx ecx, byte [ebp + 0x1c]
movsx edx, byte [ebp + 0x1b]
push eax
push ecx
movsx eax, byte [ebp + 0x1a]
movsx ecx, byte [ebp + 0x19]
push edx
push eax
movsx edx, byte [ebp + 0x18]
movsx eax, byte [ebp + 0x17]
push ecx
push edx
movsx ecx, byte [ebp + 0x16]
push eax
push ecx
lea edx, [esp + 0xd8]
push str.20_c_c__c_c__c_c__c_c:_c_c:00
push edx
call ebx
add esp, 0x30
push str.Oracle
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
je 0x432a49
movsx eax, byte [ebp + 0x1f]
movsx ecx, byte [ebp + 0x1e]
movsx edx, byte [ebp + 0x1d]
push eax
push ecx
movsx eax, byte [ebp + 0x1c]
movsx ecx, byte [ebp + 0x1b]
push edx
push eax
movsx edx, byte [ebp + 0x1a]
movsx eax, byte [ebp + 0x19]
push ecx
push edx
movsx ecx, byte [ebp + 0x18]
movsx edx, byte [ebp + 0x17]
push eax
push ecx
movsx eax, byte [ebp + 0x16]
push edx
push eax
lea ecx, [esp + 0xd8]
push str.timestamp20_c_c__c_c__c_c__c_c:_c_c:00
push ecx
call ebx
add esp, 0x30
push str.MySQL
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
je 0x432aa3
movsx edx, byte [ebp + 0x1f]
movsx eax, byte [ebp + 0x1e]
movsx ecx, byte [ebp + 0x1d]
push edx
push eax
movsx edx, byte [ebp + 0x1c]
movsx eax, byte [ebp + 0x1b]
push ecx
push edx
movsx ecx, byte [ebp + 0x1a]
movsx edx, byte [ebp + 0x19]
push eax
push ecx
movsx eax, byte [ebp + 0x18]
movsx ecx, byte [ebp + 0x17]
push edx
push eax
movsx edx, byte [ebp + 0x16]
push ecx
push edx
lea eax, [esp + 0xd8]
push 0x4845f0
push eax
call ebx
add esp, 0x30
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x21c]
xor esi, esi
xor edi, edi
mov edx, dword [ecx + 0x65631c]
mov dword [esp + 0x54], esi
push edx
push 0x476ed38
push str.SELECT_idcompany_idsubjectkind_idsubjectlen_idticketkind_ansurnam_anname_kindsubject_dtactivatkind_dtactivat_dtexpiratkind_dtexpirat_modacc_flreactivate_fladdsubject_flofflineauth_fladdonlineauth_FROM_GATD__sDEVADD_WHERE_iddevadd_d
push eax
mov dword [esp + 0x7c], esi
call ebx
add esp, 0x10
lea edx, [esp + 0x21c]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x84], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebp, eax
xor eax, eax
test ebp, ebp
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x433c26
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
test al, al
jne 0x433c26
mov al, byte [ebp + 4]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrTrimA]
test al, al
jne 0x432ddb
mov eax, dword [ebp]
lea ecx, [esp + 0x2c]
push 1
push ecx
mov ecx, ebp
call dword [eax + 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 + 0x1c]
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 + 0x2c]
call fcn.00445280
mov edx, dword [ebp]
push 2
mov ecx, ebp
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [esp + 0xa4], eax
mov eax, dword [ebp]
push 3
mov ecx, ebp
call dword [eax + 0x10]
mov edx, dword [ebp]
push 4
fstp st(0)
mov ecx, ebp
call dword [edx + 0x10]
call fcn.0045f9d8
lea ecx, [esp + 0x2c]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp]
push 5
push ecx
mov ecx, ebp
call dword [eax + 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 + 0x174]
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 + 0x2c]
call fcn.00445280
lea ecx, [esp + 0x174]
push 0x46e08c
push ecx
call ebx
mov edx, dword [ebp]
lea eax, [esp + 0x2c]
push 6
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [eax + 4]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
lea edx, [esp + 0x1a0]
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 + 0x2c]
call fcn.00445280
lea ecx, [esp + 0x1a0]
push 0x46e08c
push ecx
call ebx
mov edx, dword [ebp]
lea eax, [esp + 0x2c]
push 7
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 + 0x26]
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 + 0x2c]
call fcn.00445280
lea ecx, [esp + 0x26]
push 0x46e08c
push ecx
call ebx
mov edx, dword [ebp]
push 8
mov ecx, ebp
call dword [edx + 0x10]
call fcn.0045f9d8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x70], eax
mov eax, dword [ebp]
push 9
push ecx
mov ecx, ebp
call dword [eax + 0x14]
mov eax, dword [eax + 4]
push 0x13
lea edx, [esp + 0xa20]
push eax
push edx
call fcn.0045eb70
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00445280
lea eax, [esp + 0xa1c]
mov byte [esp + 0xa2f], 0
push eax
call fcn.0045be00
lea ecx, [esp + 0x118]
lea edx, [esp + 0xa20]
push ecx
push edx
call fcn.0045be70
mov eax, dword [ebp]
add esp, 0xc
mov ecx, ebp
push 0xa
call dword [eax + 0x10]
mov edx, dword [ebp]
fstp st(0)
lea eax, [esp + 0x2c]
push 0xb
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [eax + 4]
push 0x13
lea ecx, [esp + 0xa20]
push eax
push ecx
call fcn.0045eb70
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00445280
lea edx, [esp + 0xd8]
lea eax, [esp + 0xa1c]
push edx
push eax
mov byte [esp + 0xa37], 0
call fcn.0045cb50
lea ecx, [esp + 0xa24]
push ecx
call fcn.0045be00
lea edx, [esp + 0x1d8]
lea eax, [esp + 0xa28]
push edx
push eax
call fcn.0045be70
mov edx, dword [ebp]
add esp, 0x14
mov ecx, ebp
push 0xc
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x28], eax
mov eax, dword [ebp]
push 0xd
mov ecx, ebp
call dword [eax + 0x10]
call fcn.0045f9d8
mov edx, dword [ebp]
push 0xe
mov ecx, ebp
mov esi, eax
call dword [edx + 0x10]
call fcn.0045f9d8
mov edi, eax
mov eax, dword [ebp]
push 0xf
mov ecx, ebp
call dword [eax + 0x10]
call fcn.0045f9d8
mov edx, dword [ebp]
push 0x10
mov ecx, ebp
mov dword [esp + 0x58], eax
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x6c], eax
mov dword [esp + 0x10], 1
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x1c]
test ebp, ebp
je 0x432df0
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x433c26
test edi, edi
jne 0x432e08
test esi, esi
je 0x433c26
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea eax, [esp + 0xd4]
push 0x476ed38
push eax
lea ecx, [esp + 0xdc]
push 0x476ed38
push ecx
lea edx, [esp + 0xa8]
push 0x476ed38
push edx
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea eax, [esp + 0x284]
push str.SELECT_codd__ssubject15.lgokticket_codd__ssubject15.lgokaccess_codd__ssubject15.idcompany_codd__ssubject15.idsubject_codd__ssubject15.idsystem_codd__ssubject15.idticket_codd__ssubject15.dtactivat_GATC__sBADGE.modacc_FROM_codd__ssubject15_GATC__sBADGE_WHERE_GATC__sBADGE.hextessera_s_AND_codd__ssubject15.dtactivat__s_AND_codd__ssubject15.dtexpirat__s_AND_codd__ssubject15.idcompanyGATC__sBADGE.idcompany_AND_codd__ssubject15.idsubjectGATC__sBADGE.idsubject_AND_codd__ssubject15.idsystemGATC__sBADGE.idsystem_AND_codd__ssubject15.idticketGATC__sBADGE.idticket_AND_codd__ssubject15.dtactivatGATC__sBADGE.dtactivat
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x70
lea edx, [esp + 0x21c]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebp, eax
xor eax, eax
test ebp, ebp
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x433c26
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
test al, al
jne 0x433c26
mov al, byte [ebp + 4]
test al, al
jne 0x4330e2
test esi, esi
je 0x432f31
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax + 0x10]
call fcn.0045f9d8
test eax, eax
je 0x432f27
mov edx, dword [ebp]
push 2
mov ecx, ebp
call dword [edx + 0x10]
call fcn.0045f9d8
test eax, eax
jne 0x432f31
mov dword [esp + 0x18], 1
jmp 0x432f39
mov dword [esp + 0x18], 0
mov eax, dword [ebp]
lea ecx, [esp + 0x2c]
push 3
push ecx
mov ecx, ebp
call dword [eax + 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 + 0x1c]
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 + 0x2c]
call fcn.00445280
lea ecx, [esp + 0x1c]
push 0x46e08c
push ecx
call ebx
mov edx, dword [ebp]
lea eax, [esp + 0x2c]
push 4
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 + 0x58]
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 + 0x2c]
call fcn.00445280
lea ecx, [esp + 0x58]
push 0x46e08c
push ecx
call ebx
mov edx, dword [ebp]
lea eax, [esp + 0x2c]
push 5
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 + 0x88]
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 + 0x2c]
call fcn.00445280
push 0x46e08c
lea ecx, [esp + 0x8c]
push ecx
call ebx
mov edx, dword [ebp]
lea eax, [esp + 0x2c]
push 6
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 + 0xe8]
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 + 0x2c]
call fcn.00445280
lea ecx, [esp + 0xe8]
push 0x46e08c
push ecx
call ebx
mov edx, dword [ebp]
lea eax, [esp + 0x2c]
push 7
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [eax + 4]
push 0x13
lea ecx, [esp + 0xa20]
push eax
push ecx
call fcn.0045eb70
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00445280
lea edx, [esp + 0xa1c]
mov byte [esp + 0xa2f], 0
push edx
call fcn.0045be00
lea eax, [esp + 0x118]
lea ecx, [esp + 0xa20]
push eax
push ecx
call fcn.0045be70
mov edx, dword [ebp]
add esp, 0xc
mov ecx, ebp
push 8
call dword [edx + 0x10]
call fcn.0045f9d8
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x28], eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x1c]
test ebp, ebp
je 0x4330f7
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
test edi, edi
jne 0x433107
mov eax, dword [esp + 0x18]
test eax, eax
je 0x433c26
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x14]
test edi, edi
mov dword [esp + 0x10], 1
je 0x4337be
mov edi, str.0000000000000000
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa1c]
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
mov eax, dword [esp + 0xa4]
and ecx, 3
sub eax, 0
rep movsb byte es:[edi], byte [esi]
je 0x433184
dec eax
jne 0x4331ad
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1220]
push str._AND_idcompany_s
push edx
call ebp
add esp, 0xc
jmp 0x4331b3
mov edi, 0x514f20
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x121c]
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]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push str.SQL_Server
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
jne 0x4331df
push str.SQL_Native_Client
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
je 0x4331fe
lea ecx, [esp + 0x121c]
lea edx, [esp + 0x21c]
push ecx
push 0x476ed38
push str.SELECT_MAX_idsubject__FROM_codd__ssubject00_WHERE_idsubject_0000000000000000_AND_idsubject_9999999999999999_AND_LEN_idsubject_16_s
push edx
call ebp
add esp, 0x10
push str.PostgreSQL
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
jne 0x433240
push str.Oracle
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
jne 0x433240
push str.MySQL
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
je 0x43325f
lea eax, [esp + 0x121c]
lea ecx, [esp + 0x21c]
push eax
push 0x476ed38
push str.SELECT_MAX_idsubject__FROM_codd__ssubject00_WHERE_idsubject_0000000000000000_AND_idsubject_9999999999999999_AND_LENGTH_TRIM_BOTH___FROM_idsubject__16_s
push ecx
call ebp
add esp, 0x10
push 1
lea edx, [esp + 0x220]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
xor eax, eax
test ebx, ebx
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x4332f9
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
test al, al
jne 0x4332f9
mov al, byte [ebx + 4]
test al, al
jne 0x4332e6
mov eax, dword [ebx]
lea ecx, [esp + 0x2c]
push 1
push ecx
mov ecx, ebx
call dword [eax + 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 + 0xa1c]
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 + 0x2c]
call fcn.00445280
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
test ebx, ebx
je 0x4332f9
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
lea ecx, [esp + 0xa1c]
push ecx
call fcn.0045fb51
fadd qword [0x46b3a0]
push ecx
lea edx, [esp + 0x60]
fstp qword [esp]
push str._.0f
push edx
call fcn.0045faff
lea eax, [esp + 0x68]
push 0x10
push eax
call fcn.0045acd0
mov eax, dword [esp + 0xc0]
add esp, 0x18
sub eax, 0
je 0x433383
dec eax
je 0x433359
dec eax
jne 0x4333af
lea ecx, [esp + 0x74]
lea edx, [esp + 0xe8]
push ecx
push str.00000_s
push edx
call ebp
add esp, 0xc
jmp 0x4333af
lea edi, [esp + 0x59]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xe8]
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]
jmp 0x4333af
lea ecx, [esp + 0xa1c]
lea edx, [esp + 0x74]
push ecx
push edx
call fcn.0045dea0
lea eax, [esp + 0xa24]
lea ecx, [esp + 0xf0]
push eax
push str.00_s
push ecx
call ebp
add esp, 0x14
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x4333e2
lea edi, [esp + 0xb0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
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 + 0x58]
lea edx, [esp + 0x1c]
push ecx
push edx
push str.01_01_1800_00:00:00
call fcn.0045dfb0
add esp, 4
lea ecx, [esp + 0x17c]
lea edx, [esp + 0x60]
push eax
lea eax, [esp + 0x1ac]
push eax
push ecx
lea eax, [esp + 0x30]
push edx
push eax
push 0x476ed38
lea ecx, [esp + 0x23c]
push str.INSERT_INTO_codd__ssubject00__idcompany_idsubject_flnumrow_ansurnam_anname_flcheckobb_dtstartvl_idkeysubj_cpccchk__VALUES___s__s_1__s__s_S__s__s_s_foostrings_
push ecx
call ebp
add esp, 0x18
lea edx, [esp + 0x22c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
test eax, eax
mov dword [esp + 0x10], eax
je 0x433c10
lea edx, [esp + 0x58]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x476ed38
lea ecx, [esp + 0x228]
push str.INSERT_INTO_codd__ssubjectsec0__idcompany_idsubject_flnumrow_cpccchk__VALUES___s__s_1_foostrings_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 4
lea edx, [esp + 0x22c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
test eax, eax
mov dword [esp + 0x10], eax
je 0x433c10
lea edx, [esp + 0x14c]
push edx
push str.31_12_2999_00:00:00
call fcn.0045dfb0
add esp, 4
push eax
push str.01_01_1800_00:00:00
call fcn.0045dfb0
add esp, 4
lea ecx, [esp + 0x17c]
lea edx, [esp + 0x60]
push eax
lea eax, [esp + 0x1ac]
push eax
push ecx
lea eax, [esp + 0x30]
push edx
push eax
push 0x476ed38
lea ecx, [esp + 0x23c]
push str.INSERT_INTO_codd__ssubject03_m__idcompany_idsubject_flnumrow_ansurnam_anname_tpsex_dtstartvl_dtendvl_anzipcodbt_anprovinbt_idcitybt_dtbirth_idstatebt_ancitybt_idlegalnat_tpidentifp_idcompanyp_cpccchk__VALUES___s__s_1__s__s_M__s__s_____s___000_N_000000_foostrings_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea edx, [esp + 0x22c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
test eax, eax
mov dword [esp + 0x10], eax
je 0x433c10
lea edx, [esp + 0x14c]
push edx
push str.31_12_2999_00:00:00
call fcn.0045dfb0
add esp, 4
push eax
push str.01_01_1800_00:00:00
call fcn.0045dfb0
add esp, 4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x224]
push eax
lea eax, [esp + 0x64]
push eax
push ecx
push 0x476ed38
push str.INSERT_INTO_codd__ssubject03__idcompany_idsubject_flnumrow_cprownum_idtpsubj_dtstartsb_dtendsb_namesb_dtlastupsb_tplastupsb_cpccchk__VALUES___s__s_1_1_DIPEND__s__s_KCOM__s_IM_foostrings_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x22c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x10]
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
test eax, eax
mov dword [esp + 0x10], eax
je 0x433c10
lea edx, [esp + 0x26]
lea eax, [esp + 0x58]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push 0x476ed38
lea edx, [esp + 0x22c]
push str.INSERT_INTO_GATG__sKINDSUBJECT__idcompany_idsubject_flnumrow_kind_cpccchk__VALUES___s__s_1__s_foostrings_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea eax, [esp + 0x22c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x10]
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
test eax, eax
mov dword [esp + 0x10], eax
je 0x433c10
movsx eax, byte [esp + 0x26]
sub eax, 0x41
je 0x43365e
sub eax, 0x14
je 0x433648
dec eax
jne 0x433683
lea edx, [esp + 0x58]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x476ed38
push str.INSERT_INTO_GATG__sVISITATORI__idcompany_idsubject_flnumrow_note_cpccchk_document_funzione_ritiro__VALUES___s__s_1__foostrings___0_
jmp 0x433672
lea edx, [esp + 0x58]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x476ed38
push str.INSERT_INTO_GATG__sUTENTI__idcompany_idsubject_flnumrow_note_cpccchk__VALUES___s__s_1__foostrings_
jmp 0x433672
lea edx, [esp + 0x58]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x476ed38
push str.INSERT_INTO_GATG__sAUTOMEZZI__idcompany_idsubject_flnumrow_osservazioni_cpccchk__VALUES___s__s_1__foostrings_
lea ecx, [esp + 0x22c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
sub esp, 0x10
lea edx, [esp + 0x22c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
test eax, eax
mov dword [esp + 0x10], eax
je 0x433c10
lea edx, [esp + 0x14c]
lea eax, [esp + 0x1cc]
push edx
lea ecx, [esp + 0x118]
push eax
lea edx, [esp + 0xf0]
push ecx
lea eax, [esp + 0x64]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0x476ed38
lea edx, [esp + 0x238]
push str.INSERT_INTO_codd__ssubject15__idcompany_idsubject_idsystem_idticket_dtactivat_dtexpirat_lgokticket_lgokpres_lgokcater_lgokclerk_lgokaccess_name_dtlastupda_tplastupda_cpccchk__VALUES___s__s_01__s__s__s_1_0_0_0_1_KCOM__s__foostrings_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 0x22c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x10]
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
test eax, eax
mov dword [esp + 0x10], eax
je 0x433c10
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x6c]
push edx
push eax
push str.01_01_1800_00:00:00
call fcn.0045dfb0
mov ecx, dword [esp + 0x34]
add esp, 4
lea edx, [esp + 0x7c]
push eax
push ecx
lea eax, [esp + 0x124]
push edx
lea ecx, [esp + 0xfc]
push eax
lea edx, [esp + 0x70]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
push 0x476ed38
lea ecx, [esp + 0x244]
push str.INSERT_INTO_GATC__sBADGE__idcompany_idsubject_idsystem_idticket_dtactivat_hextessera_inscod_messaggio_modacc_authacc_ritiro_afterhour_area_ulttimb_modeprt_pincode_tipologia_nosortimp_addonlineauth_notofflineauth_refbadgekey_idexport_cpccchk__VALUES___s__s_01__s__s__s_0___d_1_0__0__s_0_0000_K_0__d__d_0__foostrings_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea edx, [esp + 0x22c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
test eax, eax
mov dword [esp + 0x10], eax
je 0x433c10
mov eax, dword [esp + 0x49e60]
mov esi, 0x4839c8
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx*8]
lea ecx, [eax + edx*8]
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*2]
lea eax, [eax + eax*4]
shl eax, 5
add eax, 0x6439f1
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x43380c
test cl, cl
je 0x433808
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x43380c
add eax, 2
add esi, 2
test cl, cl
jne 0x4337e4
xor eax, eax
jmp 0x433811
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x433bfb
mov edi, str.000000000000001
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x476ed38
mov eax, ecx
mov esi, edi
mov edi, edx
push str.SELECT_MAX_idstmt__FROM_GATC__sSTMT
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 + 0x224]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x21c]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
xor eax, eax
test ebx, ebx
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x4338f7
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
test al, al
jne 0x4338f7
mov al, byte [ebx + 4]
test al, al
jne 0x4338e4
mov eax, dword [ebx]
lea ecx, [esp + 0x13c]
push 1
push ecx
mov ecx, ebx
call dword [eax + 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 + 0x2c]
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 + 0x13c]
call fcn.00445280
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
test ebx, ebx
je 0x4338f7
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov ecx, dword [esp + 0x28]
push 0x476ed38
push ecx
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea edx, [esp + 0x258]
push str.SELECT_GATC__sMODE.kcom_GATC__sMODE.channel_GATD__sDEVICE.iddevice_GATD__sDEVICE.kindofflineauth_FROM_GATC__sMODE_GATD__sDEVICE_WHERE_GATC__sMODE.kcomGATD__sDEVICE.idkcom_AND_GATC__sMODE.channelGATD__sDEVICE.cntchannel_AND_GATC__sMODE.deviceGATD__sDEVICE.cproword_AND_GATC__sMODE.idmode_d_AND_GATD__sDEVICE.statusX
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x44
lea eax, [esp + 0x21c]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ebx, eax
xor eax, eax
test ebx, ebx
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x433bfb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
test al, al
jne 0x433bfb
mov al, byte [ebx + 4]
xor edi, edi
test al, al
mov dword [esp + 0x18], edi
jne 0x433b16
mov esi, dword [esp + 0x54]
lea ebp, [esp + 0x1a1c]
cmp edi, 0x3e8
jge 0x433b16
mov edx, dword [ebx]
push 4
mov ecx, ebx
call dword [edx + 0x10]
call fcn.0045f9d8
test eax, eax
je 0x4339f9
cmp eax, 1
jne 0x4339e8
test esi, esi
jne 0x4339f9
jmp 0x433b04
cmp eax, 2
jne 0x433b04
test esi, esi
jne 0x433b04
lea eax, [esp + 0x2c]
push eax
call fcn.0045fb51
fiadd dword [esp + 0x1c]
push ecx
fadd qword [0x46b3a0]
fstp qword [esp]
push str._.0f
push ebp
call fcn.0045faff
push 0xf
push ebp
call fcn.0045acd0
mov edx, dword [ebx]
add esp, 0x18
mov ecx, ebx
push 1
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [ebp + 0x10], eax
mov eax, dword [ebx]
push 2
mov ecx, ebx
call dword [eax + 0x10]
call fcn.0045f9d8
mov dword [ebp + 0x14], eax
mov edx, dword [ebx]
push 3
mov ecx, ebx
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [ebp + 0x18], eax
mov edi, 0x46f4f0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0xde]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xda]
and ecx, 3
push str.0000
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
and edx, 0xffff
push ecx
push str.0000
and eax, 0xffff
push edx
push eax
mov eax, dword [esp + 0xec]
and eax, 0xffff
mov ecx, 0x64
cdq
idiv ecx
lea eax, [ebp + 0x23]
push edx
push str.0000
lea edx, [esp + 0x90]
push str.0000000000
push edx
push str._s_s_s_02d_02d_02d_s_02d_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x80]
add esp, 0x2c
inc ecx
mov dword [ebp + 0x124], 2
mov dword [esp + 0x18], ecx
add ebp, 0x128
mov edi, ecx
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x20]
mov al, byte [ebx + 4]
test al, al
je 0x4339bc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
test ebx, ebx
je 0x433b29
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
test edi, edi
jle 0x433bfb
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [esp + 0x1a3f]
lea eax, [esp + 0x84]
lea ecx, [esp + 0x8c]
push eax
lea edx, [esp + 0x98]
push ecx
lea eax, [esp + 0xa4]
push edx
lea ecx, [esp + 0x8c]
push eax
lea edx, [esp + 0xa8]
push ecx
mov ecx, dword [esi + 0x101]
lea eax, [esp + 0xa4]
push edx
push eax
mov eax, dword [esi - 0xb]
push ecx
mov ecx, dword [esi - 0xf]
lea edx, [esi - 7]
push esi
push edx
mov edx, dword [esi - 0x13]
push eax
push ecx
lea eax, [esi - 0x23]
push edx
push eax
push 0x476ed38
lea ecx, [esp + 0x258]
push str.INSERT_INTO_GATC__sSTMT__idstmt__idkcom__idchn__iddevice__comando__dati__npriority__executing__cpccchk__datora__VALUES___s__d__d__d__s__s__d_0_foostrings__s_s_s_s_s_s_s_
push ecx
call ebx
add esp, 0x34
lea edx, [esp + 0x22c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [esi - 0xb]
xor ecx, ecx
cmp eax, 1
mov eax, dword [esi - 0xf]
sete cl
mov dword [esp + 0x10], ecx
mov ecx, dword [esi - 0x13]
push edx
mov edx, dword [0x476edd0]
push eax
push ecx
push edx
call fcn.00459540
add esp, 0x10
add esi, 0x128
dec edi
jne 0x433b3e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x433c10
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x433c1b
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x1c]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x49e4c
ret