Function at 0x409aa0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x458330]
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.00435470
add esp, 0xc
mov dword [ebp - 0x4c], 0
push 0x10
push 0x95
lea ecx, [ebp - 0x5c]
call fcn.00408ff0
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.004360a0
add esp, 0xc
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 6
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.004360a0
add esp, 0xc
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.004360a0
add esp, 0xc
mov eax, dword [ebp + 0x10]
add eax, 6
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jge 0x409b74
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 0x409b8a
mov byte [ebp - 0x59], 0
lea edx, [ebp - 0x68]
push edx
call fcn.00405550
add esp, 4
test eax, eax
je 0x409baa
lea eax, [ebp - 0x68]
push eax
call fcn.00405480
add esp, 4
test eax, eax
jne 0x409bae
mov byte [ebp - 0x59], 0
lea ecx, [ebp - 0x48]
push ecx
call fcn.00405550
add esp, 4
test eax, eax
je 0x409bce
lea edx, [ebp - 0x48]
push edx
call fcn.00405480
add esp, 4
test eax, eax
jne 0x409bd2
mov byte [ebp - 0x59], 0
movzx eax, byte [ebp - 0x59]
cmp eax, 1
jne 0x409d61
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x68]
push edx
push str.DELETE_FROM_Character_WHERE_AccountID_s_AND_Name_s
mov eax, dword [ebp + 8]
add eax, 0x7dc0
push eax
call fcn.00407950
add esp, 0x10
cmp eax, 1
jne 0x409d41
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
lea ecx, [ebp - 0x68]
push ecx
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
mov edx, dword [ebp + 8]
add edx, 0x7dc0
push edx
call fcn.00407950
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
lea eax, [ebp - 0x3c]
push eax
push str.GameID1
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407ca0
lea ecx, [ebp - 0x31]
push ecx
push str.GameID2
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407ca0
lea edx, [ebp - 0x26]
push edx
push str.GameID3
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407ca0
lea eax, [ebp - 0x1b]
push eax
push str.GameID4
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407ca0
lea ecx, [ebp - 0x10]
push ecx
push str.GameID5
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407ca0
mov dword [ebp - 0x4c], 0
jmp 0x409cd0
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x4c], 5
jge 0x409cf3
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
imul ecx, ecx, 0xb
lea edx, [ebp + ecx - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x409cf1
jmp 0x409cf3
jmp 0x409cc7
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, 1
push ecx
push str.UPDATE_AccountCharacter_SET_GameID_dNULL_WHERE_Id_s
mov edx, dword [ebp + 8]
add edx, 0x7dc0
push edx
call fcn.00407950
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
jmp 0x409d61
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
mov byte [ebp - 0x59], 0
movzx eax, byte [ebp - 0x5b]
push eax
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406820
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435f91
mov esp, ebp
pop ebp
ret