Function at 0x40a810
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x5c], 0
xor eax, eax
mov dword [ebp - 0x5b], eax
mov dword [ebp - 0x57], eax
mov dword [ebp - 0x53], eax
mov word [ebp - 0x4f], ax
mov byte [ebp - 0x4d], al
mov byte [ebp - 0x68], 0
xor ecx, ecx
mov dword [ebp - 0x67], ecx
mov dword [ebp - 0x63], ecx
mov word [ebp - 0x5f], cx
mov byte [ebp - 0x48], 0
xor edx, edx
mov dword [ebp - 0x47], edx
mov dword [ebp - 0x43], edx
mov word [ebp - 0x3f], dx
mov byte [ebp - 0x3c], 0
push 0x36
push 0
lea eax, [ebp - 0x3b]
push eax
call fcn.00433530
add esp, 0xc
mov dword [ebp - 0x4c], 0
push 0x10
push 0x95
lea ecx, [ebp - 0x5c]
call fcn.00409d80
mov ecx, dword [ebp + 0x10]
mov dx, word [ecx + 4]
mov word [ebp - 0x58], dx
mov byte [ebp - 0x59], 1
push 0xa
mov eax, dword [ebp + 0x10]
add eax, 6
push eax
lea ecx, [ebp - 0x56]
push ecx
call fcn.00434160
add esp, 0xc
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 6
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.00434160
add esp, 0xc
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00434160
add esp, 0xc
mov eax, dword [ebp + 0x10]
add eax, 6
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jge 0x40a8e4
mov byte [ebp - 0x59], 0
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jge 0x40a8fa
mov byte [ebp - 0x59], 0
movzx edx, byte [ebp - 0x59]
cmp edx, 1
jne 0x40aa8a
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x68]
push ecx
push str.DELETE_FROM_Character_WHERE_AccountID_s_AND_Name_s
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0x10
cmp eax, 1
jne 0x40aa6a
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea eax, [ebp - 0x68]
push eax
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
lea edx, [ebp - 0x3c]
push edx
push str.GameID1
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408bc0
lea eax, [ebp - 0x31]
push eax
push str.GameID2
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408bc0
lea ecx, [ebp - 0x26]
push ecx
push str.GameID3
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408bc0
lea edx, [ebp - 0x1b]
push edx
push str.GameID4
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408bc0
lea eax, [ebp - 0x10]
push eax
push str.GameID5
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408bc0
mov dword [ebp - 0x4c], 0
jmp 0x40a9f9
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 5
jge 0x40aa1c
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
imul eax, eax, 0xb
lea ecx, [ebp + eax - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40aa1a
jmp 0x40aa1c
jmp 0x40a9f0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x4c]
add eax, 1
push eax
push str.UPDATE_AccountCharacter_SET_GameID_dNULL_WHERE_Id_s
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
jmp 0x40aa8a
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov byte [ebp - 0x59], 0
movzx edx, byte [ebp - 0x5b]
push edx
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407670
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret