Function at 0xb52e38
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xb53154
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x661654]
call fcn.00662c60
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00692cf0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x64fe28]
call fcn.006505ec
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
call fcn.00672a4c
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x38]
mov eax, dword [ebp - 0x20]
call fcn.00652ce4
mov edx, 0xb5316c
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, 0xb531c4
mov eax, dword [ebp - 0x20]
call fcn.00652db0
mov edx, dword [ebp - 8]
call fcn.00682cb8
mov eax, dword [ebp - 0x20]
call fcn.004e35a4
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jne 0xb52f0f
mov eax, dword [ebp - 0x20]
call fcn.004e35b0
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x3c]
mov eax, dword [ebp - 0x20]
call fcn.0040429c
mov eax, dword [ebp - 0x1c]
call fcn.0040429c
jmp 0xb53139
mov dl, 1
mov eax, dword [0xaf8918]
call fcn.00af89a8
mov dword [ebp - 0x10], eax
jmp 0xb53026
mov dl, 1
mov eax, dword [0xaf85cc]
call fcn.00af8658
mov dword [ebp - 0x24], eax
mov edx, 0xb531d8
mov eax, dword [ebp - 0x20]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0x4c]
mov eax, dword [ebp - 0x24]
fistp qword [eax + 0x10]
wait
cmp byte [ebp - 9], 0
je 0xb52f60
mov eax, dword [ebp - 0x24]
fild qword [eax + 0x10]
fchs
mov eax, dword [ebp - 0x24]
fistp qword [eax + 0x10]
wait
mov edx, 0xb531ec
mov eax, dword [ebp - 0x20]
call fcn.004e481c
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
add eax, 0x20
call fcn.00405240
mov edx, 0xb53200
mov eax, dword [ebp - 0x20]
call fcn.004e481c
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
add eax, 0x24
call fcn.00405240
mov edx, 0xb53218
mov eax, dword [ebp - 0x20]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x24]
call fcn.004054ac
mov edx, dword [ebp - 0x18]
sub edx, eax
test edx, edx
jle 0xb52ff7
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x24]
add eax, 0x24
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 0x24]
mov edx, 0xb53234
call fcn.004054f8
inc dword [ebp - 0x14]
dec dword [ebp - 0x2c]
jne 0xb52fd9
mov edx, 0xb53240
mov eax, dword [ebp - 0x20]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0x4c]
mov eax, dword [ebp - 0x24]
fistp qword [eax + 0x28]
wait
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x24]
call fcn.00af88bc
mov eax, dword [ebp - 0x20]
call fcn.004e5fbc
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xa1], 0
je 0xb52f23
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
or ecx, 0xffffffff
mov eax, dword [0xb2fc2c]
call fcn.00b2fcf8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0xb530ba
mov eax, dword [ebp - 0x10]
add eax, 0x14
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x34]
call fcn.00405240
mov eax, dword [ebp - 0x10]
add eax, 0x18
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x38]
call fcn.00405240
mov eax, dword [ebp - 0x10]
add eax, 0x1c
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x78]
call fcn.00405240
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x30], 0
je 0xb530a1
mov eax, dword [ebp - 0x10]
add eax, 0x20
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x30]
call fcn.00405240
jmp 0xb530b2
mov eax, dword [ebp - 0x10]
add eax, 0x20
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x2c]
call fcn.00405240
mov eax, dword [ebp - 0x28]
call fcn.0040429c
mov edx, 0xb531c4
mov eax, dword [ebp - 0x20]
call fcn.004e481c
lea edx, [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
add eax, 0x24
call fcn.00405240
mov edx, 0xb53258
mov eax, dword [ebp - 0x20]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], eax
mov edx, 0xb53268
mov eax, dword [ebp - 0x20]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x2c], eax
call fcn.0040d3b8
mov eax, dword [ebp - 0x10]
fstp qword [eax + 0x30]
wait
mov eax, dword [ebp - 0x20]
call fcn.004e35b0
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x3c]
mov eax, dword [ebp - 0x20]
call fcn.0040429c
mov eax, dword [ebp - 0x1c]
call fcn.0040429c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb5315b
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.00405210
ret