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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x591317
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5910b0
mov dword [ebp - 4], eax
jmp 0x5912f4
lea eax, [ebp - 0x10]
mov edx, 0x591330
call fcn.00404b20
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x10]
mov dl, 1
mov eax, dword [0x585460]
call fcn.00593070
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1a]
call fcn.0050c7e8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
call fcn.0050c7e8
mov dword [ebp - 0x24], eax
mov edx, 0xfa0
mov eax, dword [0x4fd70c]
call fcn.004fdd44
mov dword [ebp - 0x14], eax
mov edx, 0xfa0
mov eax, dword [0x4fd70c]
call fcn.004fdd44
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5912ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
add eax, 0x28
mov edx, dword [ebp - 0x10]
call fcn.00404adc
mov eax, dword [ebp - 8]
mov word [eax + 0x30], 8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x5850f4]
call fcn.0058faa8
mov edi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
mov edx, edi
call fcn.0041f1cc
lea eax, [edi + 0xc]
mov edx, 0x5913c8
call fcn.00404adc
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x5850f4]
call fcn.0058faa8
mov edi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
mov edx, edi
call fcn.0041f1cc
lea eax, [edi + 0xc]
mov edx, 0x5913d4
call fcn.00404adc
push 1
mov eax, dword [ebp - 0x14]
push eax
push 0xfa0
push 9
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
lea edx, [ebp - 0xc]
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.00596b70
push eax
mov eax, esi
call fcn.00591930
call fcn.0058bb80
mov edx, eax
mov ecx, ebx
pop eax
call fcn.0058b43c
push 2
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.00596b70
push eax
mov eax, esi
call fcn.00591930
call fcn.0058bb80
mov edx, eax
mov ecx, ebx
pop eax
call fcn.0058b43c
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.00596bf4
push eax
mov eax, esi
call fcn.00591930
call fcn.0058bb80
mov edx, eax
mov ecx, ebx
pop eax
call fcn.0058b43c
lea edx, [ebp - 0x1a]
mov eax, dword [ebp - 0x20]
call fcn.0050c7f8
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
call fcn.0050c7f8
movzx eax, word [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
call fcn.0058b288
mov edi, 1
lea eax, [ebp - 0x2c]
call fcn.00404a88
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5912ab
mov eax, dword [ebp - 0x28]
mov bl, byte [eax + edi - 1]
cmp bl, 0x2e
jne 0x591295
mov eax, dword [ebp - 0x2c]
call fcn.00409f44
mov edx, dword [ebp - 4]
add edx, edx
lea edx, [edx + edx*4]
add eax, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
call fcn.00404a88
jmp 0x5912aa
lea eax, [ebp - 0x30]
mov edx, ebx
call fcn.00404c70
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
call fcn.00404d60
inc edi
mov eax, dword [ebp - 0x28]
call fcn.00404d58
cmp edi, eax
jle 0x59126a
mov eax, dword [ebp - 4]
mov dword [esi + 0x3c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5912f4
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4fd70c]
call fcn.004fdd60
mov edx, dword [ebp - 0x18]
mov eax, dword [0x4fd70c]
call fcn.004fdd60
mov eax, dword [ebp - 8]
call fcn.00403b74
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59131e
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404aac
lea eax, [ebp - 0x10]
call fcn.00404a88
ret