Function at 0x47b070
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
xor ecx, ecx
push ebx
push edi
mov edi, eax
mov dword [ebp - 0x10], ecx
cmp byte [esi + 0x3f], cl
jne 0x47b09f
push edi
mov ebx, 0x551cc0
mov eax, esi
call fcn.00418740
add esp, 4
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x94], 1
jle 0x47b0c3
push edi
mov ebx, 0x551ce8
mov eax, esi
call fcn.00418740
add esp, 4
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x50]
mov dword [ebp - 0x18], eax
and eax, 0xfff5ffff
or eax, 0x202800
cmp byte [esi + 0x40], 2
mov dword [ebp - 0x1c], edx
mov edx, dword [esi + 0x54]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], edx
mov edx, dword [esi + 0xb0]
mov dword [esi + 0xb0], ecx
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], edx
mov edx, dword [ecx]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 4], eax
movzx eax, byte [edx + 0xf]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
mov eax, 0x551d14
je 0x47b11c
mov eax, 0x551d34
push esi
mov ecx, edi
call fcn.0047ae20
mov ebx, eax
mov eax, dword [esi + 0x14]
add esp, 4
cmp eax, dword [ebp - 0xc]
jle 0x47b13f
mov ecx, dword [esi + 0x10]
mov edx, eax
add edx, edx
lea edx, [ecx + edx*8 - 0x10]
mov dword [ebp - 0x10], edx
test ebx, ebx
jne 0x47b383
mov ecx, dword [esi + 0x10]
add eax, eax
mov eax, dword [ecx + eax*8 - 0xc]
mov dword [ebp - 8], eax
call fcn.0042da00
mov eax, dword [ebp - 4]
call fcn.0042c830
mov dword [ebp - 0xc], eax
push esi
mov eax, 0x551d4c
mov ecx, edi
call fcn.0047ae20
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47b383
push esi
mov eax, 0x551d70
mov ecx, edi
call fcn.0047ae20
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47b383
mov edx, dword [ebp - 4]
push 2
push edx
call fcn.0042cd60
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x47b383
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
cmp byte [edx + 5], 5
jne 0x47b1c0
mov dword [esi + 0x48], ebx
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov ebx, dword [ebp - 8]
mov eax, dword [eax + 0x20]
push 0
push ecx
push ebx
call fcn.0042c750
add esp, 0xc
test eax, eax
jne 0x47b37e
cmp dword [ebp - 0x14], eax
jne 0x47b1fe
mov edx, dword [ebp - 0xc]
push eax
mov eax, dword [esi + 0x48]
push edx
push ebx
call fcn.0042c750
add esp, 0xc
test eax, eax
jne 0x47b37e
cmp byte [esi + 0x41], 0
jne 0x47b37e
mov al, byte [esi + 0x43]
test al, al
js 0x47b214
movsx eax, al
jmp 0x47b21c
mov eax, dword [ebp - 4]
call fcn.0042c9a0
push eax
mov eax, ebx
call fcn.0042c920
add esp, 4
push edi
push esi
mov eax, 0x551d78
call fcn.0047aee0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x47b383
push edi
push esi
mov eax, 0x551e20
call fcn.0047aee0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x47b383
push edi
push esi
mov eax, 0x551e88
call fcn.0047aee0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x47b383
or dword [esi + 0x18], 0x8000000
push edi
push esi
mov eax, 0x551f00
call fcn.0047aee0
and dword [esi + 0x18], 0xf7ffffff
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x47b383
push edi
push esi
mov eax, 0x551fe0
call fcn.0047aee0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x47b383
push edi
push esi
mov eax, 0x552098
call fcn.0047aee0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x47b383
push esi
mov eax, 0x552138
mov ecx, edi
call fcn.0047ae20
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47b383
xor edi, edi
jmp 0x47b2f0
movzx ecx, byte [edi + 0x5353e8]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push ecx
call fcn.00433010
movzx edx, byte [edi + 0x5353e9]
add edx, dword [ebp - 0x14]
movzx eax, byte [edi + 0x5353e8]
mov ebx, dword [ebp - 8]
push edx
push eax
call fcn.00433070
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x47b383
add edi, 2
cmp edi, 0xa
jl 0x47b2f0
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov eax, edi
call fcn.004354e0
mov ebx, eax
test ebx, ebx
jne 0x47b383
mov eax, edi
call fcn.0042da00
mov ebx, eax
test ebx, ebx
jne 0x47b383
mov eax, edi
call fcn.0042c9a0
mov ebx, dword [ebp - 4]
push eax
mov eax, ebx
call fcn.0042c920
mov edx, dword [ebp - 0xc]
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x20]
add esp, 4
push 1
push edx
push ebx
call fcn.0042c750
add esp, 0xc
mov ebx, eax
jmp 0x47b383
mov ebx, 7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x24]
push 1
mov dword [esi + 0x50], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0xb0], eax
push 0xffffffffffffffff
push ecx
or eax, 0xffffffff
mov dword [esi + 0x54], edx
call fcn.0042c750
mov edi, dword [ebp - 0x10]
add esp, 0xc
mov byte [esi + 0x3f], 1
test edi, edi
je 0x47b3cc
mov eax, dword [edi + 4]
call fcn.0042c4c0
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 0xc], eax
mov eax, esi
call fcn.004540a0
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret