Function at 0x40e610
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], edx
mov edx, ecx
movq xmm0, qword [edx + 6]
lea ecx, [edx + 6]
push ebx
push esi
movzx eax, word [edx + 4]
mov word [ebp - 0x80], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x76], ax
mov al, byte [ecx + 0xa]
push edi
lea edi, [edx + 0x11]
mov byte [ebp - 0x74], al
movzx eax, word [edi + 8]
mov word [ebp - 0x6b], ax
mov al, byte [edi + 0xa]
movq qword [ebp - 0x7e], xmm0
movq xmm0, qword [edi]
mov byte [ebp - 0x69], al
xor eax, eax
mov dword [ebp - 0x40], edx
mov word [ebp - 0x84], 0x3ac1
mov byte [ebp - 0x82], 2
movq qword [ebp - 0x73], xmm0
nop dword [eax]
mov cl, byte [edi + eax]
cmp cl, 0x20
je 0x40e6c9
cmp cl, 0x22
je 0x40e6c9
cmp cl, 0x27
je 0x40e6c9
inc eax
cmp eax, 0xb
jl 0x40e680
mov esi, dword [0x442970]
cmp esi, dword [0x442974]
je 0x40e6c2
push esi
push edi
call fcn.0041ab90
add esp, 8
test eax, eax
jne 0x40e6c6
add esi, 0x20
cmp esi, dword [0x442974]
jne 0x40e6a6
mov edx, dword [ebp - 0x40]
mov bl, 1
jmp 0x40e6cb
mov edx, dword [ebp - 0x40]
xor bl, bl
mov al, byte [edx + 0x1c]
movaps xmm0, xmmword [0x43f010]
mov byte [ebp - 0x66], al
mov eax, 1
push 0x37
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x3c]
push 0
push eax
mov byte [ebp - 0x67], 0
movups xmmword [ebp - 0x65], xmm0
movq qword [ebp - 0x55], xmm0
call fcn.0041b210
add esp, 0xc
test bl, bl
je 0x40e925
mov eax, dword [ebp - 0x40]
add eax, 6
push eax
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
push 0x447690
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40e925
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40e925
push str.GameID1
call fcn.00417040
cmp eax, 0xffffffff
je 0x40e765
shl eax, 0xd
push 0xa
add eax, 0x4482be
push eax
lea eax, [ebp - 0x3c]
push 0xb
push eax
call fcn.00423e56
add esp, 0x10
push str.GameID2
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e788
xorps xmm0, xmm0
mov word [ebp - 0x29], 0
movq qword [ebp - 0x31], xmm0
mov byte [ebp - 0x27], 0
jmp 0x40e7a1
shl eax, 0xd
push 0xa
add eax, 0x4482be
push eax
lea eax, [ebp - 0x31]
push 0xb
push eax
call fcn.00423e56
add esp, 0x10
push str.GameID3
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e7c4
xorps xmm0, xmm0
mov word [ebp - 0x1e], 0
movq qword [ebp - 0x26], xmm0
mov byte [ebp - 0x1c], 0
jmp 0x40e7dd
shl eax, 0xd
push 0xa
add eax, 0x4482be
push eax
lea eax, [ebp - 0x26]
push 0xb
push eax
call fcn.00423e56
add esp, 0x10
push str.GameID4
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e800
xorps xmm0, xmm0
mov word [ebp - 0x13], 0
movq qword [ebp - 0x1b], xmm0
mov byte [ebp - 0x11], 0
jmp 0x40e819
shl eax, 0xd
push 0xa
add eax, 0x4482be
push eax
lea eax, [ebp - 0x1b]
push 0xb
push eax
call fcn.00423e56
add esp, 0x10
push str.GameID5
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e83c
xorps xmm0, xmm0
mov word [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 6], 0
jmp 0x40e855
shl eax, 0xd
push 0xa
add eax, 0x4482be
push eax
lea eax, [ebp - 0x10]
push 0xb
push eax
call fcn.00423e56
add esp, 0x10
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor ebx, ebx
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x44], ebx
nop word [eax + eax]
push 0x43b22f
push esi
call fcn.0041d8c5
add esp, 8
test eax, eax
je 0x40e8a7
inc ebx
add esi, 0xb
mov dword [ebp - 0x44], ebx
cmp ebx, 5
jl 0x40e880
mov byte [ebp - 0x68], 2
jmp 0x40e943
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 0x67], bl
movzx eax, byte [ecx + 0x1c]
lea esi, [ecx + 6]
push eax
push edi
push esi
push str.EXEC_WZ_CreateCharacter__s__s__d
push 0x447690
call fcn.00416db0
add esp, 0x14
test al, al
je 0x40e91e
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40e91e
push 0x4482be
call fcn.00420b26
add esp, 4
mov bl, al
mov byte [ebp - 0x68], bl
call fcn.00417020
cmp bl, 1
jne 0x40e943
mov eax, dword [ebp - 0x44]
push esi
movzx eax, al
push edi
inc eax
push eax
push str.UPDATE_AccountCharacter_SET_GameID_d_s_WHERE_Id_s
push 0x447690
call fcn.00416db0
add esp, 0x14
call fcn.00417020
jmp 0x40e943
call fcn.00417020
jmp 0x40e93f
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x68], 0
movzx eax, byte [ebp - 0x83]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x48]
call fcn.004182a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004198d7
mov esp, ebp
pop ebp
ret