Function at 0x45b360
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1939
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x3868
call fcn.0047f090
mov eax, dword [0x4d2084]
push ebx
push esi
xor eax, ebp
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3868], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x24], ebx
mov byte [ebp - 4], 2
jne 0x45b3fc
mov eax, dword [ebp + 0x28]
mov esi, 0x10
cmp eax, esi
jb 0x45b3bf
mov eax, dword [ebp + 0x14]
push eax
call fcn.0047e60d
add esp, 4
mov dword [ebp + 0x28], 0xf
cmp dword [ebp + 0x44], esi
mov dword [ebp + 0x24], ebx
mov byte [ebp + 0x14], bl
jb 0x45b3dd
mov ecx, dword [ebp + 0x30]
push ecx
call fcn.0047e60d
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047ece2
mov esp, ebp
pop ebp
ret 0x40
mov eax, 0xf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x4d8c60
mov byte [ebp - 4], 4
call fcn.00405f00
lea ecx, [ebp + 0x2c]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov ecx, 0x4d8c60
call fcn.00405f00
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x48]
mov eax, 0x10
cmp ecx, eax
mov dword [ebp - 0x3858], ebx
mov dword [ebp - 0x3854], ebx
mov dword [ebp - 0x3850], ebx
mov byte [ebp - 0x384c], bl
jae 0x45b465
lea edi, [ebp - 0x48]
cmp dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x2c]
jae 0x45b470
lea esi, [ebp - 0x2c]
push ebx
push ebx
call fcn.0047f0fc
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
push 0x4b230c
push 0x4aa28a
push edi
push 1
push esi
lea ecx, [ebp - 0x384c]
push str.INSERT_INTO_T_union_ID__Name__Level__Enounce__Bulletin__Icon__CaptainID__ToBeDeletedBegin__Score__VALUES___s__d__s__s__s__d_FROM_UNIXTIME__u___d_
push ecx
call fcn.0047f034
add esp, 0x28
push 1
lea edx, [ebp - 0x3860]
push edx
lea eax, [ebp - 0x384c]
push eax
mov ecx, 0x4d8c60
call fcn.00404b50
cmp al, bl
mov esi, 0x10
jne 0x45b516
cmp dword [ebp - 0x34], esi
jb 0x45b4d5
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0047e60d
add esp, 4
cmp dword [ebp - 0x18], esi
mov edi, 0xf
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
jb 0x45b4f4
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0047e60d
add esp, 4
cmp dword [ebp + 0x28], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
jb 0x45b50e
mov eax, dword [ebp + 0x14]
push eax
call fcn.0047e60d
add esp, 4
mov dword [ebp + 0x28], edi
jmp 0x45b3c6
cmp dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x2c]
jae 0x45b521
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x384c]
push str.SELECT__ID__FROM__T_union__WHERE__Name____s
push edx
call fcn.0047f034
add esp, 0xc
push 1
lea eax, [ebp - 0x3860]
push eax
lea ecx, [ebp - 0x384c]
push ecx
mov ecx, 0x4d8c60
call fcn.00404b50
cmp al, bl
jne 0x45b592
cmp dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x2c]
jae 0x45b55f
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x384c]
push str.SELECT__ID__FROM__T_union__WHERE__Name__LIKE_CONVERT___utf8__s_USING_gb2312__
push edx
call fcn.0047f034
add esp, 0xc
push 1
lea eax, [ebp - 0x3860]
push eax
lea ecx, [ebp - 0x384c]
push ecx
mov ecx, 0x4d8c60
call fcn.00404b50
cmp al, bl
je 0x45b5a2
mov edx, dword [ebp - 0x3860]
push edx
call sub.LIBMYSQL.dll_mysql_num_rows
cmp eax, ebx
jne 0x45b5c7
lea ecx, [ebp - 0x4c]
call fcn.0046cd00
lea ecx, [ebp - 0x30]
call fcn.0046cd00
lea ecx, [ebp + 0x10]
call fcn.0046cd00
lea ecx, [ebp + 0x2c]
call fcn.0046cd00
jmp 0x45b3dd
mov eax, dword [ebp - 0x3860]
push eax
call sub.LIBMYSQL.dll_mysql_fetch_row
mov ecx, dword [eax]
push ecx
call fcn.0047f135
mov edx, dword [ebp - 0x3860]
add esp, 4
push edx
mov edi, eax
call sub.LIBMYSQL.dll_mysql_free_result
push 0x94
call fcn.0047c990
mov esi, eax
add esp, 4
mov dword [ebp - 0x3864], esi
cmp esi, ebx
mov byte [ebp - 4], 5
je 0x45b650
sub esp, 0x1c
lea eax, [ebp + 0x2c]
mov ecx, esp
mov dword [ebp - 0x3874], esp
push eax
call fcn.004019b0
sub esp, 0x1c
lea edx, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x3870], esp
push edx
mov byte [ebp - 4], 6
call fcn.004019b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3868]
push eax
push edi
push ecx
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0045b260
mov esi, eax
jmp 0x45b652
xor esi, esi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 6
push 1
push edx
push eax
mov ecx, esi
mov byte [ebp - 4], 4
mov dword [ebp - 0x3864], esi
call fcn.0045a170
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3870], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 0x2c]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.004017d0
mov ecx, esi
call fcn.0045a6a0
mov ecx, dword [ebp - 0x3868]
lea eax, [ebp - 0x3864]
push eax
call fcn.0045ac50
lea ecx, [ebp - 0x4c]
call fcn.0046cd00
lea ecx, [ebp - 0x30]
call fcn.0046cd00
lea ecx, [ebp + 0x10]
call fcn.0046cd00
lea ecx, [ebp + 0x2c]
call fcn.0046cd00
mov eax, edi
jmp 0x45b3df