Function at 0x5dfc30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x454
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x5dfc89
push 0x20
push 0x7c0498
push str.pOwner
push str.CHECK
push 0x793720
call fcn.00401080
add esp, 0x14
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0x80], ecx
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov ecx, dword [edi + 0x5c]
lea ebx, [edi + 0x5c]
mov esi, eax
mov eax, dword [ebx + 4]
push eax
push ecx
mov ecx, ebx
call fcn.005e31e0
mov eax, dword [edi + 0x6c]
mov edx, dword [edi + 0x68]
lea ecx, [edi + 0x68]
push eax
push edx
call fcn.005e31e0
lea ecx, [edi + 0x74]
mov dword [ebp - 0x14], ecx
call fcn.0048b100
mov ecx, dword [0x7fd60c]
push 9
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0x80]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp + 8]
push eax
call fcn.005e7b80
push 0xd3
push 0xd5
push 0xce
push 0x35
mov word [edi + 0x58], ax
push esi
push 0x79a140
lea eax, [ebp - 0x460]
push str.SELECT_id_item_type_relationship_star_lev_level_mete_lev_name_owner_id_reborn_times_plunder_FROM__s_WHERE_player_id_u___t_t_t___position_u__position_u__position_u__position_u__order_by_star_lev_desc
push eax
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x20
lea eax, [ebp - 0x460]
mov edx, dword [ecx]
push 1
push eax
call dword [edx]
mov esi, eax
mov dword [ebp - 0x58], esi
xor eax, eax
cmp esi, eax
mov dword [ebp - 4], eax
je 0x5dff1e
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 0x10], eax
call dword [edx + 0x60]
cmp dword [ebp - 0x10], eax
jae 0x5dff1e
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x44]
push eax
mov ecx, edi
mov dword [ebp - 0x1c], eax
call fcn.005e0650
test al, al
je 0x5dff0e
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov edx, dword [esi]
push 2
mov ecx, esi
call dword [edx + 0x44]
mov dword [ebp - 0x40], eax
mov eax, dword [esi]
push 3
mov ecx, esi
call dword [eax + 0x44]
mov dword [ebp - 0x38], eax
mov edx, dword [esi]
push 4
mov ecx, esi
call dword [edx + 0x44]
mov byte [ebp - 0x30], al
mov eax, dword [esi]
push 5
mov ecx, esi
call dword [eax + 0x44]
mov byte [ebp - 0x2f], al
mov edx, dword [esi]
push 0x10
push 6
mov ecx, esi
call dword [edx + 0x48]
push eax
lea eax, [ebp - 0x2e]
push eax
call fcn.0040cc10
mov edx, dword [esi]
add esp, 0xc
mov ecx, esi
push 7
call dword [edx + 0x44]
mov dword [ebp - 0x44], eax
mov eax, dword [esi]
push 8
mov ecx, esi
call dword [eax + 0x44]
mov dword [ebp - 0x3c], eax
mov edx, dword [esi]
push 9
mov ecx, esi
call dword [edx + 0x44]
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x80]
lea ecx, [eax + 8]
mov eax, dword [eax + 8]
call dword [eax + 0x34]
cmp eax, 0x64
ja 0x5dfe1f
mov eax, dword [ebp - 0x40]
test ah, 1
je 0x5dfe1f
mov ecx, dword [ebp - 0x4c]
and ah, 0xfe
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x50], eax
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x14]
push edx
push eax
call fcn.00441a90
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, edi
call fcn.005e1570
mov ecx, dword [ebx + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 4]
cmp eax, ecx
je 0x5dfe4f
lea edx, [ebp - 0x4c]
push edx
push eax
call fcn.005e35d0
mov eax, dword [ebx + 4]
add esp, 8
add eax, 0x30
mov dword [ebx + 4], eax
jmp 0x5dfe5b
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov ecx, ebx
call fcn.005e3260
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x5dff0e
cmp eax, 0xc
jge 0x5dff0e
mov ecx, dword [0x7fd618]
test ecx, ecx
jne 0x5dfe9d
push 0x1c9
push 0x797a90
push str.g_pDynaSortMgr
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ecx, ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edi + 0x80]
push 1
push edx
push eax
call fcn.00536110
mov eax, dword [edi + 0x6c]
mov edx, dword [edi + 0x70]
lea ecx, [edi + 0x68]
cmp eax, edx
je 0x5dfed4
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.005e35d0
mov eax, dword [edi + 0x6c]
add esp, 8
add eax, 0x30
mov dword [edi + 0x6c], eax
jmp 0x5dfede
lea edx, [ebp - 0x4c]
push edx
push eax
call fcn.005e3260
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, edi
call fcn.005e2020
lea edx, [ebp - 0x4c]
push eax
push edx
mov ecx, edi
call fcn.005e16b0
cmp dword [ebp + 8], 2
jne 0x5dff0e
mov ax, word [edi + 0x56]
mov ecx, edi
mov word [edi + 0x5a], ax
call fcn.005e1f30
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
mov eax, dword [ebp - 0x10]
inc eax
jmp 0x5dfd37
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
cmp eax, ecx
mov dword [ebp - 0x18], eax
je 0x5dff73
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
push ecx
push edx
push 0x79a140
lea eax, [ebp - 0x460]
push str.UPDATE__s_SET_relationship_u_WHERE_id_u_LIMIT_1
push eax
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x14
lea eax, [ebp - 0x460]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 8]
lea ecx, [ebp - 0x18]
call fcn.0042e8a0
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
cmp eax, ecx
jne 0x5dff2d
mov eax, dword [ebx + 4]
test eax, eax
je 0x5dffc0
mov ecx, dword [ebx]
mov edi, dword [ecx + 4]
test edi, edi
je 0x5dffa6
mov edx, dword [edi + 0xc]
mov ecx, ebx
push edx
call fcn.00440650
mov eax, dword [edi + 8]
push 0x18
push edi
mov dword [ebp + 8], eax
call fcn.004051b0
mov edi, dword [ebp + 8]
add esp, 8
test edi, edi
jne 0x5dff83
mov eax, dword [ebx]
mov dword [eax + 8], eax
mov ecx, dword [ebx]
mov dword [ecx + 4], 0
mov eax, dword [ebx]
mov dword [eax + 0xc], eax
mov dword [ebx + 4], 0
test esi, esi
mov dword [ebp - 4], 0xffffffff
pop ebx
je 0x5dffd3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4