Function at 0x434960
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword [0x476ecf4]
sub esp, 0x864
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x434980
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x864
ret
mov eax, dword [esp + 0x878]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x87c]
lea eax, [eax + edx*2]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*8]
lea ecx, [esp + 0x4c]
mov eax, dword [edx*4 + 0x65937c]
lea edx, [esp + 0x24]
push eax
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.004265e0
add esp, 0x24
test eax, eax
jne 0x4349ea
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x864
ret
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x880]
push 0xa
add eax, 8
lea ecx, [esp + 0x14]
push eax
push ecx
xor ebp, ebp
call fcn.0045eb70
mov edi, str.434F44494345202020202020202020204E4F4E2050524553454E544520202020
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x26], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x1c]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x890]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x5c]
and ecx, 3
lea eax, [esp + 0x84]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x5c]
push ecx
push edx
push 0x476ed38
push 0x476ed38
push 0x476ed38
push str.SELECT_GATC_BADGE1.HEXTESSERA_FROM___codd__ssubject15_codd_subject15_LEFT_OUTER_JOIN_GATC__sBADGE_GATC_BADGE_ON_codd_subject15.IDCOMPANYGATC_BADGE.IDCOMPANY_and_codd_subject15.IDSUBJECTGATC_BADGE.IDSUBJECT_and_codd_subject15.DTACTIVATGATC_BADGE.DTACTIVAT_and_codd_subject15.IDSYSTEMGATC_BADGE.IDSYSTEM_and_codd_subject15.IDTICKETGATC_BADGE.IDTICKET__LEFT_OUTER_JOIN_GATC__sBADGE_GATC_BADGE1_ON_GATC_BADGE.IDCOMPANYGATC_BADGE1.IDCOMPANY_and_GATC_BADGE.IDSUBJECTGATC_BADGE1.IDSUBJECT__WHERE_codd_subject15.DTACTIVAT____s_AND_codd_subject15.DTEXPIRAT____s_AND_GATC_BADGE.HEXTESSERA___s_AND_GATC_BADGE1.DATIEXTRA__X
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x2c
lea edx, [esp + 0x74]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x4c], 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 0x434b55
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
test al, al
jne 0x434b55
mov al, byte [ebx + 4]
test al, al
jne 0x434b42
mov eax, dword [ebx]
lea ecx, [esp + 0x3c]
push 1
push ecx
mov ecx, ebx
call dword [eax + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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 + 0x3c]
call fcn.00445280
lea ecx, [esp + 0x10]
push 0x46e08c
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
movsx edx, byte [esp + 0x19]
movsx eax, byte [esp + 0x18]
movsx ecx, byte [esp + 0x17]
push edx
push eax
movsx edx, byte [esp + 0x1e]
movsx eax, byte [esp + 0x1d]
push ecx
mov ecx, dword [esp + 0x890]
push edx
push eax
push str.434F444943452052414E444F4D202020_X_X_X_X_X2020202020202020202020
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
mov ebp, 1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
test ebx, ebx
je 0x434b55
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x864
ret