Function at 0x4102b0
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.0041f470
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 0x41038d
cmp cl, 0x22
je 0x41038d
cmp cl, 0x27
je 0x41038d
inc eax
cmp eax, 0xb
jl 0x410345
mov esi, dword [0x446ac0]
cmp esi, dword [0x446ac4]
je 0x410389
nop dword [eax + eax]
push esi
push edi
call fcn.0041efc0
add esp, 8
test eax, eax
jne 0x41038d
add esi, 0x20
cmp esi, dword [0x446ac4]
jne 0x410370
mov bl, 1
jmp 0x41038f
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.0041f470
add esp, 0xc
test bl, bl
je 0x410769
lea eax, [esi + 6]
push eax
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x410769
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x410769
push str.GameID1
call fcn.0041af50
cmp eax, 0xffffffff
je 0x410438
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x78]
push 0xb
push eax
call fcn.0042750d
add esp, 0x10
push str.GameID2
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x41045b
xorps xmm0, xmm0
mov word [ebp - 0x65], 0
movq qword [ebp - 0x6d], xmm0
mov byte [ebp - 0x63], 0
jmp 0x410474
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x6d]
push 0xb
push eax
call fcn.0042750d
add esp, 0x10
push str.GameID3
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x410497
xorps xmm0, xmm0
mov word [ebp - 0x5a], 0
movq qword [ebp - 0x62], xmm0
mov byte [ebp - 0x58], 0
jmp 0x4104b0
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x62]
push 0xb
push eax
call fcn.0042750d
add esp, 0x10
push str.GameID4
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4104d3
xorps xmm0, xmm0
mov word [ebp - 0x4f], 0
movq qword [ebp - 0x57], xmm0
mov byte [ebp - 0x4d], 0
jmp 0x4104ec
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x57]
push 0xb
push eax
call fcn.0042750d
add esp, 0x10
push str.GameID5
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x41050f
xorps xmm0, xmm0
mov word [ebp - 0x44], 0
movq qword [ebp - 0x4c], xmm0
mov byte [ebp - 0x42], 0
jmp 0x410528
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x4c]
push 0xb
push eax
call fcn.0042750d
add esp, 0x10
push str.GameID6
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x41054b
xorps xmm0, xmm0
mov word [ebp - 0x39], 0
movq qword [ebp - 0x41], xmm0
mov byte [ebp - 0x37], 0
jmp 0x410564
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x41]
push 0xb
push eax
call fcn.0042750d
add esp, 0x10
push str.GameID7
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x410587
xorps xmm0, xmm0
mov word [ebp - 0x2e], 0
movq qword [ebp - 0x36], xmm0
mov byte [ebp - 0x2c], 0
jmp 0x4105a0
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x36]
push 0xb
push eax
call fcn.0042750d
add esp, 0x10
push str.GameID8
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4105c3
xorps xmm0, xmm0
mov word [ebp - 0x23], 0
movq qword [ebp - 0x2b], xmm0
mov byte [ebp - 0x21], 0
jmp 0x4105dc
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x2b]
push 0xb
push eax
call fcn.0042750d
add esp, 0x10
push str.GameID9
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4105ff
xorps xmm0, xmm0
mov word [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov byte [ebp - 0x16], 0
jmp 0x410618
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x20]
push 0xb
push eax
call fcn.0042750d
add esp, 0x10
push str.GameID10
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x41063b
xorps xmm0, xmm0
mov word [ebp - 0xd], 0
movq qword [ebp - 0x15], xmm0
mov byte [ebp - 0xb], 0
jmp 0x410654
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x15]
push 0xb
push eax
call fcn.0042750d
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.004215b0
add esp, 8
test eax, eax
je 0x4106aa
inc ebx
add esi, 0xb
mov dword [ebp - 0x80], ebx
cmp ebx, 0xa
jl 0x410680
mov byte [ebp - 0xa4], 2
jmp 0x41078a
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.0041ad00
add esp, 0x14
test al, al
je 0x410759
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x410759
push 0x447a7e
call fcn.0042415e
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 0x41078a
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.0041ad00
add esp, 0x14
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x41078a
push dword [0x446e5c]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
jmp 0x410775
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.0041c330
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret