Function at 0x409720
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x458330]
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.00435470
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.00435470
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.004360a0
add esp, 0xc
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 0xe
push edx
lea eax, [ebp - 0x90]
push eax
call fcn.004360a0
add esp, 0xc
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0x18
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.004360a0
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
call fcn.00405550
add esp, 4
cmp eax, 1
jne 0x409a5c
lea ecx, [ebp - 0x48]
push ecx
call fcn.00405480
add esp, 4
cmp eax, 1
jne 0x409a5c
lea edx, [ebp - 0x90]
push edx
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
mov eax, dword [ebp + 8]
add eax, 0x7dc0
push eax
call fcn.00407950
add esp, 0xc
cmp eax, 1
jne 0x409a45
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
lea ecx, [ebp - 0x3c]
push ecx
push str.GameID1
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407ca0
lea edx, [ebp - 0x31]
push edx
push str.GameID2
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407ca0
lea eax, [ebp - 0x26]
push eax
push str.GameID3
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407ca0
lea ecx, [ebp - 0x1b]
push ecx
push str.GameID4
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407ca0
lea edx, [ebp - 0x10]
push edx
push str.GameID5
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407ca0
mov dword [ebp - 0x4c], 0
jmp 0x4098d6
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 5
jge 0x4098ef
mov ecx, dword [ebp - 0x4c]
imul ecx, ecx, 0xb
movsx edx, byte [ebp + ecx - 0x3c]
test edx, edx
jne 0x4098ed
jmp 0x4098ef
jmp 0x4098cd
cmp dword [ebp - 0x4c], 5
jge 0x409a2e
push 0xa
mov eax, dword [ebp + 0x10]
add eax, 0x18
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.004360a0
add esp, 0xc
mov dl, byte [ebp - 0x4c]
mov byte [ebp - 0x6a], dl
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
movzx eax, byte [ebp - 0x69]
sar eax, 4
test eax, eax
jl 0x409939
movzx ecx, byte [ebp - 0x69]
sar ecx, 4
cmp ecx, 6
jle 0x409940
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, 0x7dc0
push edx
call fcn.00407950
add esp, 0x14
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407ed0
mov byte [ebp - 0x81], al
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
movzx eax, byte [ebp - 0x81]
cmp eax, 1
jne 0x409a2c
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, 0x7dc0
push ecx
call fcn.00407950
add esp, 0x14
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
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, 0x7dc0
push ecx
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 0x409a43
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
mov byte [ebp - 0x81], 2
jmp 0x409a5a
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
mov byte [ebp - 0x81], 2
jmp 0x409a63
mov byte [ebp - 0x81], 2
push 0x36
push 0x94
lea ecx, [ebp - 0x84]
call fcn.00408ff0
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.00406820
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435f91
mov esp, ebp
pop ebp
ret