Function at 0x4db988
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 0x4dbc2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4db9c3
mov dword [ebp - 4], eax
jmp 0x4dbc04
lea eax, [ebp - 0x10]
mov edx, 0x4dbc48
call fcn.00404358
mov eax, dword [0x533bf4]
mov eax, dword [eax]
call fcn.004839cc
mov ecx, eax
mov dl, 1
mov eax, dword [0x4d1d48]
call fcn.004dd438
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1e]
call fcn.004839fc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
call fcn.004839fc
mov dword [ebp - 0x28], eax
mov edx, 0xfa0
mov eax, dword [0x478f10]
call fcn.004793ec
mov dword [ebp - 0x18], eax
mov edx, 0xfa0
mov eax, dword [0x478f10]
call fcn.004793ec
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4dbbfd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
add eax, 0x28
mov edx, dword [ebp - 0x10]
call fcn.00404314
mov eax, dword [ebp - 8]
mov word [eax + 0x30], 8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4d1aa0]
call fcn.004db3f0
mov edi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
mov edx, edi
call fcn.0041d790
lea eax, [edi + 0xc]
mov edx, 0x4dbcd4
call fcn.00404314
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4d1aa0]
call fcn.004db3f0
mov edi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
mov edx, edi
call fcn.0041d790
lea eax, [edi + 0xc]
mov edx, 0x4dbce0
call fcn.00404314
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.004e0848
xor edx, edx
call fcn.004cdc78
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.004e0848
xor edx, edx
call fcn.004cdc78
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.004e08cc
xor edx, edx
call fcn.004cdc78
lea edx, [ebp - 0x1e]
mov eax, dword [ebp - 0x24]
call fcn.00483a0c
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x28]
call fcn.00483a0c
lea eax, [ebp - 0x14]
push eax
movzx ecx, word [ebp - 0x1e]
mov edx, dword [ebp - 0x18]
mov eax, dword [0x478f10]
call fcn.004794c8
lea eax, [ebp - 0x2c]
push eax
movzx ecx, word [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x478f10]
call fcn.004794c8
mov edi, 1
lea eax, [ebp - 0x30]
call fcn.004042c0
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4dbbab
mov eax, dword [ebp - 0x2c]
mov bl, byte [eax + edi - 1]
cmp bl, 0x2e
jne 0x4dbb95
mov eax, dword [ebp - 0x30]
call fcn.00409114
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.004042c0
jmp 0x4dbbaa
lea eax, [ebp - 0x34]
mov edx, ebx
call fcn.004044a8
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.00404598
inc edi
mov eax, dword [ebp - 0x2c]
call fcn.00404590
cmp edi, eax
jle 0x4dbb6a
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 0x4dbc04
mov edx, dword [ebp - 0x18]
mov eax, dword [0x478f10]
call fcn.00479408
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x478f10]
call fcn.00479408
mov eax, dword [ebp - 0x28]
call fcn.00483a24
mov eax, dword [ebp - 0x24]
call fcn.00483a24
mov eax, dword [ebp - 8]
call fcn.004034a4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dbc33
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.004042e4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004042e4
ret