Function at 0x511b84
Capabilities:
Access peb ldr_data
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x511e28
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x34]
test eax, eax
je 0x511bbf
mov dword [ebp - 4], eax
jmp 0x511e00
lea eax, [ebp - 0x10]
mov edx, 0x511e44
call fcn.00404a10
mov eax, dword [0x5694ac]
mov eax, dword [eax]
call fcn.004b96c4
mov ecx, eax
mov dl, 1
mov eax, dword [0x507f44]
call fcn.00513634
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1e]
call fcn.004b96f4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
call fcn.004b96f4
mov dword [ebp - 0x28], eax
mov edx, 0xfa0
mov eax, dword [0x4aebe0]
call fcn.004af0bc
mov dword [ebp - 0x18], eax
mov edx, 0xfa0
mov eax, dword [0x4aebe0]
call fcn.004af0bc
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x511df9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
add eax, 0x28
mov edx, dword [ebp - 0x10]
call fcn.004049cc
mov eax, dword [ebp - 8]
mov word [eax + 0x30], 8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x507c9c]
call fcn.005115ec
mov edi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
mov edx, edi
call fcn.0041e3c8
lea eax, [edi + 0xc]
mov edx, 0x511ed0
call fcn.004049cc
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x507c9c]
call fcn.005115ec
mov edi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
mov edx, edi
call fcn.0041e3c8
lea eax, [edi + 0xc]
mov edx, 0x511edc
call fcn.004049cc
push 1
mov eax, dword [ebp - 0x18]
push eax
push 0xfa0
push 9
push 0
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
lea edx, [ebp - 0xc]
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.00516b04
xor edx, edx
call fcn.00503e74
push 2
mov eax, dword [ebp - 0x1c]
push eax
push 0xfa0
push 9
push 0
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0
lea edx, [ebp - 0xc]
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.00516b04
xor edx, edx
call fcn.00503e74
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], esi
push 0
mov ecx, 1
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00516b88
xor edx, edx
call fcn.00503e74
lea edx, [ebp - 0x1e]
mov eax, dword [ebp - 0x24]
call fcn.004b9704
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x28]
call fcn.004b9704
lea eax, [ebp - 0x14]
push eax
movzx ecx, word [ebp - 0x1e]
mov edx, dword [ebp - 0x18]
mov eax, dword [0x4aebe0]
call fcn.004af198
lea eax, [ebp - 0x2c]
push eax
movzx ecx, word [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x4aebe0]
call fcn.004af198
mov edi, 1
lea eax, [ebp - 0x30]
call fcn.00404978
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x511da7
mov eax, dword [ebp - 0x2c]
mov bl, byte [eax + edi - 1]
cmp bl, 0x2e
jne 0x511d91
mov eax, dword [ebp - 0x30]
call fcn.00409a24
mov edx, dword [ebp - 4]
add edx, edx
lea edx, [edx + edx*4]
add eax, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
call fcn.00404978
jmp 0x511da6
lea eax, [ebp - 0x34]
mov edx, ebx
call fcn.00404b60
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.00404c6c
inc edi
mov eax, dword [ebp - 0x2c]
call fcn.00404c64
cmp edi, eax
jle 0x511d66
mov eax, dword [ebp - 4]
mov dword [esi + 0x34], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511e00
mov edx, dword [ebp - 0x18]
mov eax, dword [0x4aebe0]
call fcn.004af0d8
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x4aebe0]
call fcn.004af0d8
mov eax, dword [ebp - 0x28]
call fcn.004b971c
mov eax, dword [ebp - 0x24]
call fcn.004b971c
mov eax, dword [ebp - 8]
call fcn.00403a80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511e2f
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.0040499c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040499c
ret