Function at 0x40dda0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
push ebx
push esi
mov word [ebp - 0xc4], ax
movzx eax, word [ecx + 0xe]
push edi
lea edi, [ecx + 6]
mov word [ebp - 0xba], ax
mov al, byte [edi + 0xa]
mov dword [ebp - 0x8c], edx
lea edx, [ecx + 0x11]
mov byte [ebp - 0xb8], al
movzx eax, word [edx + 8]
mov word [ebp - 0xaf], ax
mov al, byte [edx + 0xa]
movq qword [ebp - 0xc2], xmm0
movq xmm0, qword [edx]
mov byte [ebp - 0xad], al
xor eax, eax
mov dword [ebp - 0x80], ecx
mov word [ebp - 0xc8], 0x3ac1
mov byte [ebp - 0xc6], 2
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x84], edx
movq qword [ebp - 0xb7], xmm0
nop dword [eax]
mov cl, byte [edx + eax]
cmp cl, 0x20
je 0x40de86
cmp cl, 0x22
je 0x40de86
cmp cl, 0x27
je 0x40de86
inc eax
cmp eax, 0xb
jl 0x40de30
mov esi, dword [0x422028]
cmp esi, dword [0x42202c]
je 0x40de7f
mov edi, dword [sym.imp.VCRUNTIME140.dll_strstr]
nop dword [eax]
push esi
push edx
call edi
add esp, 8
test eax, eax
jne 0x40de83
mov edx, dword [ebp - 0x84]
add esi, 0x20
cmp esi, dword [0x42202c]
jne 0x40de60
mov edi, dword [ebp - 0x7c]
mov bl, 1
jmp 0x40de88
mov edi, dword [ebp - 0x7c]
xor bl, bl
mov eax, dword [ebp - 0x80]
movaps xmm0, xmmword [0x41f380]
push 0x6e
push 0
mov al, byte [eax + 0x1c]
mov byte [ebp - 0xaa], al
mov eax, 1
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 0xab], 0
movups xmmword [ebp - 0xa9], xmm0
movq qword [ebp - 0x99], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test bl, bl
je 0x40e2f3
push edi
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40e2f3
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40e2f3
push str.GameID1
call fcn.00415100
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
cmp eax, 0xffffffff
je 0x40df31
shl eax, 0xd
push 0xa
add eax, 0x423036
push eax
lea eax, [ebp - 0x78]
push 0xb
push eax
call esi
add esp, 0x10
push str.GameID2
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40df54
xorps xmm0, xmm0
mov word [ebp - 0x65], 0
movq qword [ebp - 0x6d], xmm0
mov byte [ebp - 0x63], 0
jmp 0x40df6a
shl eax, 0xd
push 0xa
add eax, 0x423036
push eax
lea eax, [ebp - 0x6d]
push 0xb
push eax
call esi
add esp, 0x10
push str.GameID3
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40df8d
xorps xmm0, xmm0
mov word [ebp - 0x5a], 0
movq qword [ebp - 0x62], xmm0
mov byte [ebp - 0x58], 0
jmp 0x40dfa3
shl eax, 0xd
push 0xa
add eax, 0x423036
push eax
lea eax, [ebp - 0x62]
push 0xb
push eax
call esi
add esp, 0x10
push str.GameID4
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40dfc6
xorps xmm0, xmm0
mov word [ebp - 0x4f], 0
movq qword [ebp - 0x57], xmm0
mov byte [ebp - 0x4d], 0
jmp 0x40dfdc
shl eax, 0xd
push 0xa
add eax, 0x423036
push eax
lea eax, [ebp - 0x57]
push 0xb
push eax
call esi
add esp, 0x10
push str.GameID5
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40dfff
xorps xmm0, xmm0
mov word [ebp - 0x44], 0
movq qword [ebp - 0x4c], xmm0
mov byte [ebp - 0x42], 0
jmp 0x40e015
shl eax, 0xd
push 0xa
add eax, 0x423036
push eax
lea eax, [ebp - 0x4c]
push 0xb
push eax
call esi
add esp, 0x10
push str.GameID6
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40e038
xorps xmm0, xmm0
mov word [ebp - 0x39], 0
movq qword [ebp - 0x41], xmm0
mov byte [ebp - 0x37], 0
jmp 0x40e04e
shl eax, 0xd
push 0xa
add eax, 0x423036
push eax
lea eax, [ebp - 0x41]
push 0xb
push eax
call esi
add esp, 0x10
push str.GameID7
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40e071
xorps xmm0, xmm0
mov word [ebp - 0x2e], 0
movq qword [ebp - 0x36], xmm0
mov byte [ebp - 0x2c], 0
jmp 0x40e087
shl eax, 0xd
push 0xa
add eax, 0x423036
push eax
lea eax, [ebp - 0x36]
push 0xb
push eax
call esi
add esp, 0x10
push str.GameID8
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40e0aa
xorps xmm0, xmm0
mov word [ebp - 0x23], 0
movq qword [ebp - 0x2b], xmm0
mov byte [ebp - 0x21], 0
jmp 0x40e0c0
shl eax, 0xd
push 0xa
add eax, 0x423036
push eax
lea eax, [ebp - 0x2b]
push 0xb
push eax
call esi
add esp, 0x10
push str.GameID9
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40e0e3
xorps xmm0, xmm0
mov word [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov byte [ebp - 0x16], 0
jmp 0x40e0f9
shl eax, 0xd
push 0xa
add eax, 0x423036
push eax
lea eax, [ebp - 0x20]
push 0xb
push eax
call esi
add esp, 0x10
push str.GameID10
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40e11c
xorps xmm0, xmm0
mov word [ebp - 0xd], 0
movq qword [ebp - 0x15], xmm0
mov byte [ebp - 0xb], 0
jmp 0x40e132
shl eax, 0xd
push 0xa
add eax, 0x423036
push eax
lea eax, [ebp - 0x15]
push 0xb
push eax
call esi
add esp, 0x10
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor ebx, ebx
lea esi, [ebp - 0x78]
mov dword [ebp - 0x88], ebx
nop dword [eax]
push 0x41bb6e
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x40e18e
inc ebx
add esi, 0xb
mov dword [ebp - 0x88], ebx
cmp ebx, 0xa
jl 0x40e160
mov byte [ebp - 0xac], 2
jmp 0x40e314
mov byte [ebp - 0xab], bl
cmp bl, 0xa
jae 0x40e20d
push dword [ebp - 0x7c]
push str.SELECT_Slot_FROM_AccountCharacter_WHERE_Id_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40e219
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40e219
push str.Slot
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40e1d7
or esi, eax
jmp 0x40e1eb
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov esi, eax
push dword [0x422414]
call edi
mov ecx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call ecx
lea ecx, [esi + 5]
movzx eax, bl
cmp eax, ecx
jl 0x40e233
mov byte [ebp - 0xac], 2
jmp 0x40e314
push dword [0x422414]
call edi
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call ebx
jmp 0x40e239
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x80]
mov esi, dword [ebp - 0x84]
movzx eax, byte [eax + 0x1c]
push eax
push esi
push dword [ebp - 0x7c]
push str.EXEC_WZ_CreateCharacter__s__s__d
push 0x422408
call fcn.00414eb0
add esp, 0x14
test al, al
je 0x40e2df
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40e2df
push 0x423036
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov bl, al
mov byte [ebp - 0xac], bl
push dword [0x422414]
call edi
mov ecx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call ecx
cmp bl, 1
jne 0x40e314
push dword [ebp - 0x7c]
mov eax, dword [ebp - 0x88]
movzx eax, al
push esi
inc eax
push eax
push str.UPDATE_AccountCharacter_SET_GameID_d_s_WHERE_Id_s
push 0x422408
call fcn.00414eb0
add esp, 0x14
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40e314
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call ebx
jmp 0x40e30d
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0xac], 0
movzx eax, byte [ebp - 0xc7]
push eax
lea eax, [ebp - 0xc8]
push eax
push dword [ebp - 0x8c]
call fcn.004163f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417e1d
mov esp, ebp
pop ebp
ret