Function at 0x480860
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov ebx, ecx
xor ecx, ecx
mov edi, eax
mov dword [ebp - 0x10], ecx
cmp byte [edi + 0x34], cl
jne 0x480892
push 0x4109f0
mov esi, edi
call fcn.00428b90
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x80], 1
jle 0x4808b6
push 0x410a18
mov esi, edi
call fcn.00428b90
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x44]
mov dword [ebp - 0x1c], eax
and eax, 0xfaffffff
or eax, 0x10050000
cmp byte [edi + 0x35], 2
mov dword [ebp - 0x20], edx
mov edx, dword [edi + 0x48]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x24], edx
mov edx, dword [edi + 0x94]
mov dword [edi + 0x94], ecx
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x28], edx
mov edx, dword [ecx]
mov ecx, dword [edi + 0x14]
mov dword [ebp - 4], eax
movzx eax, byte [edx + 0xe]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], ecx
mov eax, 0x410a44
je 0x48090f
mov eax, 0x410a64
mov ecx, ebx
call fcn.00480530
mov esi, eax
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0xc]
jle 0x48092e
mov ecx, dword [edi + 0x10]
mov edx, eax
add edx, edx
lea edx, [ecx + edx*8 - 0x10]
mov dword [ebp - 0x10], edx
test esi, esi
jne 0x480b77
mov ecx, dword [edi + 0x10]
add eax, eax
mov eax, dword [ecx + eax*8 - 0xc]
mov dword [ebp - 8], eax
call fcn.0043b9b0
mov eax, dword [ebp - 4]
call fcn.0043a600
mov dword [ebp - 0xc], eax
cmp dword [edi + 0x3c], esi
je 0x48096c
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x2c]
mov eax, edi
call fcn.00491da0
cmp dword [ebp - 0x14], esi
je 0x48096c
mov dword [edi + 0x3c], esi
mov eax, 0x410a7c
mov ecx, ebx
call fcn.00480530
mov esi, eax
test esi, esi
jne 0x480b77
mov eax, 0x410aa0
mov ecx, ebx
call fcn.00480530
mov esi, eax
test esi, esi
jne 0x480b77
mov edx, dword [ebp - 4]
push 2
push edx
call fcn.0043ab60
mov esi, eax
add esp, 8
test esi, esi
jne 0x480b77
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
cmp byte [edx + 5], 5
jne 0x4809c1
mov dword [edi + 0x3c], esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov esi, dword [ebp - 8]
mov eax, dword [eax + 0x20]
push 0
push ecx
push esi
call fcn.0043a520
add esp, 0xc
test eax, eax
jne 0x480b72
cmp dword [ebp - 0x18], eax
jne 0x4809ff
mov edx, dword [ebp - 0xc]
push eax
mov eax, dword [edi + 0x3c]
push edx
push esi
call fcn.0043a520
add esp, 0xc
test eax, eax
jne 0x480b72
cmp byte [edi + 0x36], 0
jne 0x480b72
mov al, byte [edi + 0x38]
test al, al
js 0x480a15
movsx eax, al
jmp 0x480a1d
mov eax, dword [ebp - 4]
call fcn.0043a780
push eax
mov eax, esi
call fcn.0043a700
add esp, 4
push ebx
push edi
mov eax, 0x410aa8
call fcn.004805b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x480b77
push ebx
push edi
mov eax, 0x410b30
call fcn.004805b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x480b77
push ebx
push edi
mov eax, 0x410b98
call fcn.004805b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x480b77
push ebx
push edi
mov eax, 0x410c10
call fcn.004805b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x480b77
push ebx
push edi
mov eax, 0x410cc8
call fcn.004805b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x480b77
push ebx
push edi
mov eax, 0x410d40
call fcn.004805b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x480b77
mov eax, 0x410de0
mov ecx, ebx
call fcn.00480530
mov esi, eax
test esi, esi
jne 0x480b77
xor ebx, ebx
jmp 0x480ae0
movzx ecx, byte [ebx + 0x40a1fc]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push ecx
call fcn.00440420
movzx edx, byte [ebx + 0x40a1fd]
add edx, dword [ebp - 0x18]
movzx eax, byte [ebx + 0x40a1fc]
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.00440490
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x480b77
add ebx, 2
cmp ebx, 8
jl 0x480ae0
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
push ecx
mov esi, ebx
call fcn.00442ea0
mov esi, eax
add esp, 4
test esi, esi
jne 0x480b77
mov eax, ebx
call fcn.0043b9b0
mov esi, eax
test esi, esi
jne 0x480b77
mov eax, ebx
call fcn.0043a780
mov esi, dword [ebp - 4]
push eax
mov eax, esi
call fcn.0043a700
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x20]
add esp, 4
push 1
push ecx
push esi
call fcn.0043a520
add esp, 0xc
mov esi, eax
jmp 0x480b77
mov esi, 7
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x44], eax
mov eax, dword [ebp - 4]
push 1
mov dword [edi + 0x18], edx
mov edx, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
or eax, 0xffffffff
mov dword [edi + 0x48], ecx
mov dword [edi + 0x94], edx
call fcn.0043a520
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov byte [edi + 0x34], 1
test eax, eax
je 0x480bc3
mov ebx, dword [eax + 4]
call fcn.0043a300
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], ecx
or eax, 0xffffffff
mov ecx, edi
call fcn.0045e010
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret