Function at 0x4ab890
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5179e8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x57b728]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov ecx, dword [0x57d0f8]
mov eax, dword [ecx]
call dword [eax + 0x180]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x4aba70
cmp byte [edi + 0x18], 0
je 0x4aba70
push 0xffffffffffffffff
push str.SELECT_Grade_DropRate_FROM_PS_GameDefs.dbo.MobItems_WHERE_MobID
lea ecx, [ebp - 0x6c]
call fcn.00417cd0
mov ecx, dword [esi + 0x1c4]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi]
push 0
mov ebx, eax
push str.Updating_drops_definition...
mov ecx, esi
mov dword [ebp - 0x14], ebx
call dword [edx + 0x108]
mov edx, dword [esi]
push ebx
push 0
mov ecx, esi
call dword [edx + 0x10c]
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
test ecx, ecx
jle 0x4aba53
mov eax, dword [esi]
push ecx
push ebx
mov ecx, esi
call dword [eax + 0x10c]
mov eax, dword [esi + 0x1c4]
lea ecx, [ebp - 0x48]
mov eax, dword [eax + 4]
mov ebx, dword [eax + ebx*4]
lea eax, [ebp - 0x6c]
push eax
call fcn.00417c60
push dword [ebx + 0x14]
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.00418470
add esp, 8
cmp dword [0x57604c], 0x53f840
mov ecx, eax
jne 0x4ab982
call fcn.00419670
jmp 0x4ab990
push 0
push 0xffffffffffffffff
push str._ORDER_BY_ItemOrder
call fcn.00418a80
push dword [ebp - 0x44]
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
call dword [eax + 0x24]
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4aba29
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
test al, al
je 0x4aba29
xor esi, esi
lea edi, [ebx + 0x5c]
add ebx, 0x4a
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4ab9de
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0x1c]
jmp 0x4ab9e0
xor eax, eax
mov word [ebx], ax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4ab9fa
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x1c]
jmp 0x4ab9fc
xor eax, eax
mov dword [edi], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4aba23
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
test al, al
je 0x4aba23
inc esi
add ebx, 2
add edi, 4
cmp esi, 9
jl 0x4ab9c7
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0040e860
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00417dd0
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc ebx
mov dword [ebp - 0x10], ebx
cmp ebx, ecx
jl 0x4ab936
mov eax, dword [esi]
push 0
push 0
mov ecx, esi
call dword [eax + 0x108]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
call fcn.00417dd0
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4aba93
cmp dword [eax + 0x1c], 1
jbe 0x4aba93
cmp byte [ecx + 1], 0x3a
jne 0x4aba93
mov ecx, dword [esi + 0x1c4]
push 1
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, esi
call fcn.004b64b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret