Function at 0x45c550
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x4a1a06
mov eax, dword fs:[0]
push eax
mov eax, 0x3858
mov dword fs:[0], esp
call fcn.0047f090
mov eax, dword [0x4d2084]
xor eax, esp
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
mov dword [esp + 0x3868], eax
mov esi, ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov byte [esp + 0x68], bl
call fcn.0047f0fc
add esp, 4
mov dword [esp + 0x18], eax
xor edx, edx
mov ecx, dword [esi + 4]
cmp ecx, ebx
mov dword [esp + 0x10], edx
jne 0x45c353
xor eax, eax
jmp 0x45c35b
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edx, eax
jge 0x45c51e
mov eax, dword [ecx + edx*4]
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x68]
push str.SELECT_UNIX_TIMESTAMP_ToBeDeletedBegin__FROM_T_union_WHERE_ID_d
push ecx
call fcn.0047f034
add esp, 0xc
push 1
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x6c]
push eax
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
je 0x45c51a
mov ecx, dword [esp + 0x14]
push ecx
call sub.LIBMYSQL.dll_mysql_num_rows
cmp eax, ebx
je 0x45c51a
mov edx, dword [esp + 0x14]
push edx
call sub.LIBMYSQL.dll_mysql_fetch_row
mov eax, dword [eax]
cmp eax, ebx
je 0x45c506
push eax
call fcn.0047f135
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x45c506
mov eax, dword [esp + 0x18]
add eax, 0xfffd5d00
cmp ebp, eax
jae 0x45c506
mov edi, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov eax, dword [edi + eax*4]
mov edx, dword [eax + 0x60]
add eax, 0x5c
cmp edx, ebx
je 0x45c416
mov ecx, dword [eax + 8]
sub ecx, edx
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xa
jae 0x45c506
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [edi + edx*4]
call fcn.0042b540
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [eax + edi*4]
mov dword [esp + 0x3874], ebx
call fcn.0042b540
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x3870], 1
jb 0x45c455
mov eax, dword [eax + 4]
jmp 0x45c458
add eax, 4
mov ecx, dword [esi + 4]
mov edx, dword [ecx + edi*4]
push eax
push 2
push edx
call fcn.00457b10
mov eax, dword [esp + 0x40]
add esp, 0xc
cmp eax, 0x10
mov byte [esp + 0x3870], bl
jb 0x45c487
mov eax, dword [esp + 0x20]
push eax
call fcn.0047e60d
add esp, 4
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx]
push eax
mov ecx, esi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.0045b710
mov eax, dword [esp + 0x50]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0x3c]
jae 0x45c4bc
lea eax, [esp + 0x3c]
mov edx, dword [esp + 0x18]
push edx
push ebp
push eax
mov eax, dword [0x52f0f8]
push str.A_guild_is_deleted___Guild_s_ToBeDeletedBegin_d_Now_d__n
push eax
call fcn.0048dda0
mov eax, dword [esp + 0x64]
add esp, 0x14
cmp eax, edi
mov dword [esp + 0x3870], 0xffffffff
jb 0x45c4f6
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0047e60d
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov edx, dword [esp + 0x14]
push edx
call sub.LIBMYSQL.dll_mysql_free_result
mov edx, dword [esp + 0x10]
inc edx
jmp 0x45c344
xor al, al
jmp 0x45c520
mov al, 1
mov ecx, dword [esp + 0x3868]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3858]
pop ebx
xor ecx, esp
call fcn.0047ece2
add esp, 0x3864
ret
push esi
mov esi, ecx
call sub.WINMM.dll_timeGetTime
mov edx, dword [0x524f4c]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x927c0
jbe 0x45c577
mov ecx, esi
mov dword [0x524f4c], eax
pop esi
jmp 0x45c2f0
pop esi
ret