Function at 0x40a490
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x84], 0
push 0x35
push 0
lea eax, [ebp - 0x83]
push eax
call fcn.00433530
add esp, 0xc
mov byte [ebp - 0x90], 0
xor ecx, ecx
mov dword [ebp - 0x8f], ecx
mov dword [ebp - 0x8b], ecx
mov word [ebp - 0x87], 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
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx + 0x22]
mov byte [ebp - 0x69], dl
mov eax, dword [ebp + 0x10]
mov cx, word [eax + 0xc]
mov word [ebp - 0x80], cx
mov edx, 1
mov word [ebp - 0x50], dx
push 0xa
mov eax, dword [ebp + 0x10]
add eax, 0xe
push eax
lea ecx, [ebp - 0x7e]
push ecx
call fcn.00434160
add esp, 0xc
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 0xe
push edx
lea eax, [ebp - 0x90]
push eax
call fcn.00434160
add esp, 0xc
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0x18
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00434160
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
call fcn.004063d0
add esp, 4
cmp eax, 1
jne 0x40a7cc
lea ecx, [ebp - 0x48]
push ecx
call fcn.00406360
add esp, 4
cmp eax, 1
jne 0x40a7cc
lea edx, [ebp - 0x90]
push edx
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
mov eax, dword [ebp + 8]
add eax, 0x7d80
push eax
call fcn.00408880
add esp, 0xc
cmp eax, 1
jne 0x40a7b5
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
lea ecx, [ebp - 0x3c]
push ecx
push str.GameID1
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408bc0
lea edx, [ebp - 0x31]
push edx
push str.GameID2
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408bc0
lea eax, [ebp - 0x26]
push eax
push str.GameID3
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408bc0
lea ecx, [ebp - 0x1b]
push ecx
push str.GameID4
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408bc0
lea edx, [ebp - 0x10]
push edx
push str.GameID5
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408bc0
mov dword [ebp - 0x4c], 0
jmp 0x40a646
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 5
jge 0x40a65f
mov ecx, dword [ebp - 0x4c]
imul ecx, ecx, 0xb
movsx edx, byte [ebp + ecx - 0x3c]
test edx, edx
jne 0x40a65d
jmp 0x40a65f
jmp 0x40a63d
cmp dword [ebp - 0x4c], 5
jge 0x40a79e
push 0xa
mov eax, dword [ebp + 0x10]
add eax, 0x18
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.00434160
add esp, 0xc
mov dl, byte [ebp - 0x4c]
mov byte [ebp - 0x6a], dl
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
movzx eax, byte [ebp - 0x69]
sar eax, 4
test eax, eax
jl 0x40a6a9
movzx ecx, byte [ebp - 0x69]
sar ecx, 4
cmp ecx, 6
jle 0x40a6b0
mov byte [ebp - 0x81], 0
movzx edx, byte [ebp - 0x69]
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x90]
push ecx
push str.WZ_CreateCharacter__s___s___d
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0x14
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408df0
mov byte [ebp - 0x81], al
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
movzx eax, byte [ebp - 0x81]
cmp eax, 1
jne 0x40a79c
lea ecx, [ebp - 0x90]
push ecx
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
add eax, 1
push eax
push str.UPDATE_AccountCharacter_SET_GameID_d_s_WHERE_Id_s
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0x14
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x90]
push eax
push str.INSERT_INTO_SCFS5Quest__AccountID__Name__VALUES___s__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 0x40a7b3
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov byte [ebp - 0x81], 2
jmp 0x40a7ca
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov byte [ebp - 0x81], 2
jmp 0x40a7d3
mov byte [ebp - 0x81], 2
push 0x36
push 0x94
lea ecx, [ebp - 0x84]
call fcn.00409d80
movzx edx, byte [ebp - 0x83]
push edx
lea eax, [ebp - 0x84]
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