Function at 0x4102e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x39
lea eax, [ebp - 0xbf]
mov dword [ebp - 0x84], edx
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x7c], ebx
call fcn.0041f490
movzx eax, word [ebx + 4]
lea edi, [ebx + 0x11]
movq xmm0, qword [ebx + 6]
add esp, 0xc
mov word [ebp - 0xbc], ax
movzx eax, word [ebx + 0xe]
mov word [ebp - 0xb2], ax
mov al, byte [ebx + 0x10]
mov byte [ebp - 0xb0], al
movzx eax, word [edi + 8]
mov word [ebp - 0xa7], ax
mov al, byte [edi + 0xa]
movq qword [ebp - 0xba], xmm0
movq xmm0, qword [edi]
mov byte [ebp - 0xa5], al
xor eax, eax
mov word [ebp - 0xc0], 0x3ac1
mov byte [ebp - 0xbe], 2
movq qword [ebp - 0xaf], xmm0
mov cl, byte [edi + eax]
cmp cl, 0x20
je 0x4103bd
cmp cl, 0x22
je 0x4103bd
cmp cl, 0x27
je 0x4103bd
inc eax
cmp eax, 0xb
jl 0x410375
mov esi, dword [0x446ac0]
cmp esi, dword [0x446ac4]
je 0x4103b9
nop dword [eax + eax]
push esi
push edi
call fcn.0041efe0
add esp, 8
test eax, eax
jne 0x4103bd
add esi, 0x20
cmp esi, dword [0x446ac4]
jne 0x4103a0
mov bl, 1
jmp 0x4103bf
xor bl, bl
mov esi, dword [ebp - 0x7c]
movaps xmm0, xmmword [0x442de0]
push 0x6e
push 0
mov al, byte [esi + 0x1c]
mov byte [ebp - 0xa2], al
mov eax, 1
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 0xa3], 0
movups xmmword [ebp - 0xa1], xmm0
movq qword [ebp - 0x91], xmm0
call fcn.0041f490
add esp, 0xc
test bl, bl
je 0x410799
lea eax, [esi + 6]
push eax
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x410799
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x410799
push str.GameID1
call fcn.0041af60
cmp eax, 0xffffffff
je 0x410468
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x78]
push 0xb
push eax
call fcn.0042752d
add esp, 0x10
push str.GameID2
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x41048b
xorps xmm0, xmm0
mov word [ebp - 0x65], 0
movq qword [ebp - 0x6d], xmm0
mov byte [ebp - 0x63], 0
jmp 0x4104a4
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x6d]
push 0xb
push eax
call fcn.0042752d
add esp, 0x10
push str.GameID3
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4104c7
xorps xmm0, xmm0
mov word [ebp - 0x5a], 0
movq qword [ebp - 0x62], xmm0
mov byte [ebp - 0x58], 0
jmp 0x4104e0
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x62]
push 0xb
push eax
call fcn.0042752d
add esp, 0x10
push str.GameID4
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x410503
xorps xmm0, xmm0
mov word [ebp - 0x4f], 0
movq qword [ebp - 0x57], xmm0
mov byte [ebp - 0x4d], 0
jmp 0x41051c
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x57]
push 0xb
push eax
call fcn.0042752d
add esp, 0x10
push str.GameID5
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x41053f
xorps xmm0, xmm0
mov word [ebp - 0x44], 0
movq qword [ebp - 0x4c], xmm0
mov byte [ebp - 0x42], 0
jmp 0x410558
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x4c]
push 0xb
push eax
call fcn.0042752d
add esp, 0x10
push str.GameID6
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x41057b
xorps xmm0, xmm0
mov word [ebp - 0x39], 0
movq qword [ebp - 0x41], xmm0
mov byte [ebp - 0x37], 0
jmp 0x410594
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x41]
push 0xb
push eax
call fcn.0042752d
add esp, 0x10
push str.GameID7
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4105b7
xorps xmm0, xmm0
mov word [ebp - 0x2e], 0
movq qword [ebp - 0x36], xmm0
mov byte [ebp - 0x2c], 0
jmp 0x4105d0
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x36]
push 0xb
push eax
call fcn.0042752d
add esp, 0x10
push str.GameID8
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4105f3
xorps xmm0, xmm0
mov word [ebp - 0x23], 0
movq qword [ebp - 0x2b], xmm0
mov byte [ebp - 0x21], 0
jmp 0x41060c
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x2b]
push 0xb
push eax
call fcn.0042752d
add esp, 0x10
push str.GameID9
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x41062f
xorps xmm0, xmm0
mov word [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov byte [ebp - 0x16], 0
jmp 0x410648
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x20]
push 0xb
push eax
call fcn.0042752d
add esp, 0x10
push str.GameID10
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x41066b
xorps xmm0, xmm0
mov word [ebp - 0xd], 0
movq qword [ebp - 0x15], xmm0
mov byte [ebp - 0xb], 0
jmp 0x410684
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x15]
push 0xb
push eax
call fcn.0042752d
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor ebx, ebx
lea esi, [ebp - 0x78]
mov dword [ebp - 0x80], ebx
nop word [eax + eax]
push 0x43d40e
push esi
call fcn.004215d0
add esp, 8
test eax, eax
je 0x4106da
inc ebx
add esi, 0xb
mov dword [ebp - 0x80], ebx
cmp ebx, 0xa
jl 0x4106b0
mov byte [ebp - 0xa4], 2
jmp 0x4107ba
mov ecx, dword [ebp - 0x7c]
mov byte [ebp - 0xa3], bl
movzx eax, byte [ecx + 0x1c]
push eax
push edi
lea eax, [ecx + 6]
push eax
push str.EXEC_WZ_CreateCharacter__s__s__d
push 0x446e50
call fcn.0041ad10
add esp, 0x14
test al, al
je 0x410789
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x410789
push 0x447a7e
call fcn.0042417e
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esp, 4
mov bl, al
mov byte [ebp - 0xa4], bl
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp bl, 1
jne 0x4107ba
mov eax, dword [ebp - 0x7c]
add eax, 6
push eax
mov eax, dword [ebp - 0x80]
movzx eax, al
push edi
inc eax
push eax
push str.UPDATE_AccountCharacter_SET_GameID_d_s_WHERE_Id_s
push 0x446e50
call fcn.0041ad10
add esp, 0x14
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4107ba
push dword [0x446e5c]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
jmp 0x4107a5
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0xa4], 0
movzx eax, byte [ebp - 0xbf]
push eax
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0x84]
call fcn.0041c350
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc7d
mov esp, ebp
pop ebp
ret