Function at 0x58c010
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
jne 0x58c02e
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
lea esi, [ebx + 0x18]
mov ecx, esi
call fcn.00591400
add edi, 0x10
mov ecx, esi
push edi
call fcn.0057d4e0
cmp dword [esi], 0
jne 0x58c067
push 0x28
push str.....commonAutoLink.h
push str.IsValid__
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, eax
mov eax, dword [esi]
test eax, eax
jne 0x58c094
push 0x28
push str.....commonAutoLink.h
push str.IsValid__
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
mov ecx, dword [esi]
call fcn.00498610
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov ecx, edx
mov edx, dword [ebx + 0x10]
push ecx
push edx
mov ecx, ebx
call fcn.0058bf30
mov dword [ebx + 0x10], eax
push edi
push 0x79a140
lea eax, [ebp - 0x43c]
push str.SELECT_e.id_e.item_type_e.player_id_e.star_lev_e.card_id_e.name_FROM__s_As_e_WHERE_e.syndicate_id_u
push eax
mov dword [ebx + 0x14], edx
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x10
lea eax, [ebp - 0x43c]
mov edx, dword [ecx]
push 1
push eax
call dword [edx]
mov esi, eax
test esi, esi
je 0x58c23f
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp + 8], 0
call dword [edx + 0x60]
test eax, eax
jbe 0x58c238
mov eax, dword [esi]
push 2
mov ecx, esi
call dword [eax + 0x44]
mov edi, eax
mov eax, dword [ebx + 0x18]
test eax, eax
mov dword [ebp - 8], edi
jne 0x58c135
push 0x28
push str.....commonAutoLink.h
push str.IsValid__
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
mov ecx, dword [ebx + 0x18]
push edi
call fcn.00491370
test al, al
je 0x58c21b
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x58c16b
push 0x28
push str.....commonAutoLink.h
push str.IsValid__
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
mov eax, dword [ebx + 0x18]
push edi
lea ecx, [eax + 0x38]
call fcn.00499130
test eax, eax
mov dword [ebp - 4], eax
jne 0x58c1a1
push 0xb0
push 0x7b82f4
push str.pInfo
push str.IF_NOT
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x58c21b
mov edx, dword [esi]
mov ecx, 0xd
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
push eax
mov ecx, esi
call dword [edx + 0x44]
mov edx, dword [esi]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
push 1
mov ecx, esi
mov dword [ebp - 0x3c], eax
call dword [edx + 0x44]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
push 3
mov ecx, esi
call dword [eax + 0x44]
mov edx, dword [esi]
push 4
mov ecx, esi
mov dword [ebp - 0x30], eax
call dword [edx + 0x44]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
push 0x10
push 5
mov ecx, esi
call dword [eax + 0x48]
lea ecx, [ebp - 0x28]
push eax
push ecx
call fcn.0040cc10
mov edx, dword [ebp - 4]
push 0x10
add edx, 4
lea eax, [ebp - 0x18]
push edx
push eax
call fcn.0040cc10
add esp, 0x18
lea ecx, [ebp - 0x3c]
push 1
push 0
push ecx
mov ecx, ebx
call fcn.0058c2f0
mov edi, dword [ebp + 8]
mov edx, dword [esi]
inc edi
mov ecx, esi
mov dword [ebp + 8], edi
call dword [edx + 0x64]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
cmp edi, eax
jb 0x58c102
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov ecx, ebx
call fcn.0058e050
push 1
mov ecx, ebx
call fcn.00590190
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4