Function at 0x4f6730
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x1f0]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x6887a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov esi, esp
mov eax, dword [ebp + 8]
push eax
push str._CALL_pSelect_UserSerial__s__
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, esp
call fcn.004c1aeb
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x15]
test ecx, ecx
je 0x4f6766
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.004bdb03
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
jne 0x4f679d
mov ecx, dword [ebp - 0xc]
call fcn.004bf90d
movzx eax, al
test eax, eax
jne 0x4f679d
lea eax, [ebp - 0x12c]
push eax
push str.ReConnectDataBase___Fail._Query_:__s
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004c0ba5
add esp, 0xc
xor al, al
jmp 0x4f6959
push 0xfffffffffffffffd
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
call fcn.004c1bbd
mov word [ebp - 0x24], ax
movsx eax, word [ebp - 0x24]
test eax, eax
je 0x4f6814
movsx eax, word [ebp - 0x24]
cmp eax, 1
je 0x4f6814
movsx eax, word [ebp - 0x24]
cmp eax, 0x64
jne 0x4f67d9
xor al, al
jmp 0x4f6959
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
push 0x62e344
lea edx, [ebp - 0x12c]
push edx
mov ax, word [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.004bc17c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
mov dx, word [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.004bd4ff
xor al, al
jmp 0x4f6959
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004be9c2
mov word [ebp - 0x24], ax
movsx eax, word [ebp - 0x24]
test eax, eax
je 0x4f688e
movsx eax, word [ebp - 0x24]
cmp eax, 1
je 0x4f688e
movsx eax, word [ebp - 0x24]
cmp eax, 0x64
je 0x4f6872
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
push str.SQLFetch
lea edx, [ebp - 0x12c]
push edx
mov ax, word [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.004bc17c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
mov dx, word [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.004bd4ff
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x4f6887
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004b93eb
xor al, al
jmp 0x4f6959
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0xffffffffffffffee
push 1
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
call fcn.004ba3e5
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x18]
push eax
push 0x20
mov ecx, dword [ebp + 0x10]
push ecx
push 1
push 2
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
call fcn.004ba3e5
mov word [ebp - 0x24], ax
movsx eax, word [ebp - 0x24]
test eax, eax
je 0x4f6928
movsx eax, word [ebp - 0x24]
cmp eax, 1
je 0x4f6928
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
push str.SQLGetData
lea edx, [ebp - 0x12c]
push edx
mov ax, word [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.004bc17c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
mov dx, word [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.004bd4ff
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x4f6924
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004b93eb
xor al, al
jmp 0x4f6959
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004b93eb
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x15]
test ecx, ecx
je 0x4f6957
lea eax, [ebp - 0x12c]
push eax
push str._s_Success
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004bca73
add esp, 0xc
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x4efe30]
call fcn.004be5d5
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c03b2
add esp, 0x1f0
cmp ebp, esp
call fcn.004c1aeb
mov esp, ebp
pop ebp
ret 0xc