Function at 0x4107f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ecx + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x8f], xmm0
mov dword [ebp - 0x94], edx
lea edx, [ecx + 6]
movq xmm0, qword [edx]
mov word [ebp - 0x8c], ax
movzx eax, word [edx + 8]
push ebx
mov word [ebp - 0x82], ax
mov al, byte [edx + 0xa]
push esi
push edi
mov byte [ebp - 0x80], al
lea edi, [ecx + 0x11]
mov byte [ebp - 0x7f], 0
xor eax, eax
mov word [ebp - 0x90], 0x12c1
mov byte [ebp - 0x8e], 3
mov dword [ebp - 0x7c], edx
movq qword [ebp - 0x8a], xmm0
nop dword [eax]
mov cl, byte [edi + eax]
cmp cl, 0x20
je 0x410bff
cmp cl, 0x22
je 0x410bff
cmp cl, 0x27
je 0x410bff
inc eax
cmp eax, 0xb
jl 0x410860
push edi
push edx
push str.EXEC_WZ_DeleteCharacter__s__s
push 0x446e50
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x410bff
push dword [0x446e5c]
mov esi, dword [sym.imp.ODBC32.dll_SQLFetch]
call esi
cmp ax, 0x64
je 0x410bff
push 0x447a7e
call fcn.0042417e
add esp, 4
mov bl, al
mov byte [ebp - 0x7f], bl
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp bl, 1
jne 0x410c1d
push 0x6e
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.0041f490
add esp, 0xc
push dword [ebp - 0x7c]
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x410bdf
push dword [0x446e5c]
call esi
cmp ax, 0x64
je 0x410bdf
push str.GameID1
call fcn.0041af60
cmp eax, 0xffffffff
je 0x410954
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 0x410977
xorps xmm0, xmm0
mov word [ebp - 0x65], 0
movq qword [ebp - 0x6d], xmm0
mov byte [ebp - 0x63], 0
jmp 0x410990
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 0x4109b3
xorps xmm0, xmm0
mov word [ebp - 0x5a], 0
movq qword [ebp - 0x62], xmm0
mov byte [ebp - 0x58], 0
jmp 0x4109cc
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 0x4109ef
xorps xmm0, xmm0
mov word [ebp - 0x4f], 0
movq qword [ebp - 0x57], xmm0
mov byte [ebp - 0x4d], 0
jmp 0x410a08
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 0x410a2b
xorps xmm0, xmm0
mov word [ebp - 0x44], 0
movq qword [ebp - 0x4c], xmm0
mov byte [ebp - 0x42], 0
jmp 0x410a44
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 0x410a67
xorps xmm0, xmm0
mov word [ebp - 0x39], 0
movq qword [ebp - 0x41], xmm0
mov byte [ebp - 0x37], 0
jmp 0x410a80
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 0x410aa3
xorps xmm0, xmm0
mov word [ebp - 0x2e], 0
movq qword [ebp - 0x36], xmm0
mov byte [ebp - 0x2c], 0
jmp 0x410abc
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 0x410adf
xorps xmm0, xmm0
mov word [ebp - 0x23], 0
movq qword [ebp - 0x2b], xmm0
mov byte [ebp - 0x21], 0
jmp 0x410af8
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 0x410b1b
xorps xmm0, xmm0
mov word [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov byte [ebp - 0x16], 0
jmp 0x410b34
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 0x410b57
xorps xmm0, xmm0
mov word [ebp - 0xd], 0
movq qword [ebp - 0x15], xmm0
mov byte [ebp - 0xb], 0
jmp 0x410b70
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]
nop
push edi
push esi
call fcn.004215d0
add esp, 8
test eax, eax
je 0x410ba9
inc ebx
add esi, 0xb
cmp ebx, 0xa
jl 0x410b90
jmp 0x410c1d
push dword [ebp - 0x7c]
movzx eax, bl
inc eax
push eax
push str.UPDATE_AccountCharacter_SET_GameID_dNULL_WHERE_Id_s
push 0x446e50
call fcn.0041ad10
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]
jmp 0x410c1d
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 - 0x7f], 1
jmp 0x410c1d
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 - 0x7f], 0
push 0x12
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x94]
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