Function at 0x40bd40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1164
call fcn.0042f3a0
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ecx + 4]
add ecx, 6
push ebx
push esi
push edi
movq xmm0, qword [ecx]
mov word [ebp - 0x1158], ax
movzx eax, word [ecx + 8]
push ecx
mov dword [ebp - 0x1160], edx
mov edx, 0x14
mov word [ebp - 0x114e], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Id_FROM_AccountCharacter_WHERE_Id_s
push 0x442698
mov byte [ebp - 0x115c], 0xc2
mov byte [ebp - 0x1159], 1
mov dword [ebp - 0x1138], edx
mov dword [ebp - 0x1130], ecx
movq qword [ebp - 0x1156], xmm0
mov byte [ebp - 0x114c], al
call fcn.00413700
mov esi, dword [sym.imp.ODBC32.dll_SQLFetch]
add esp, 0xc
mov dword [ebp - 0x1140], esi
test al, al
je 0x40be00
push dword [0x4426a4]
call esi
cmp ax, 0x64
je 0x40be00
push dword [0x4426a4]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov dword [ebp - 0x1134], ebx
call ebx
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1128], edi
jmp 0x40be4a
push dword [0x4426a4]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov dword [ebp - 0x1134], ebx
call ebx
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
mov dword [ebp - 0x1128], edi
call edi
push dword [ebp - 0x1130]
push str.INSERT_INTO_AccountCharacter__Id__VALUES___s_
push 0x442698
call fcn.00413700
add esp, 0xc
push dword [0x4426a4]
call ebx
push 2
push dword [0x4426a4]
call edi
push 0x37
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00417d10
add esp, 0xc
push dword [ebp - 0x1130]
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
push 0x442698
call fcn.00413700
add esp, 0xc
push dword [0x4426a4]
call esi
push str.MoveCnt
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40be97
or eax, eax
jmp 0x40bea8
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.ExtClass
mov byte [ebp - 0x114b], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40bec1
or eax, eax
jmp 0x40bed2
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.GameID1
mov byte [ebp - 0x114a], al
call fcn.00413990
cmp eax, 0xffffffff
je 0x40bf00
shl eax, 0xd
push 0xa
add eax, 0x443e7e
push eax
lea eax, [ebp - 0x3c]
push 0xb
push eax
call fcn.00420956
add esp, 0x10
push str.GameID2
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40bf23
xorps xmm0, xmm0
mov word [ebp - 0x29], 0
movq qword [ebp - 0x31], xmm0
mov byte [ebp - 0x27], 0
jmp 0x40bf3c
shl eax, 0xd
push 0xa
add eax, 0x443e7e
push eax
lea eax, [ebp - 0x31]
push 0xb
push eax
call fcn.00420956
add esp, 0x10
push str.GameID3
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40bf5f
xorps xmm0, xmm0
mov word [ebp - 0x1e], 0
movq qword [ebp - 0x26], xmm0
mov byte [ebp - 0x1c], 0
jmp 0x40bf78
shl eax, 0xd
push 0xa
add eax, 0x443e7e
push eax
lea eax, [ebp - 0x26]
push 0xb
push eax
call fcn.00420956
add esp, 0x10
push str.GameID4
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40bf9b
xorps xmm0, xmm0
mov word [ebp - 0x13], 0
movq qword [ebp - 0x1b], xmm0
mov byte [ebp - 0x11], 0
jmp 0x40bfb4
shl eax, 0xd
push 0xa
add eax, 0x443e7e
push eax
lea eax, [ebp - 0x1b]
push 0xb
push eax
call fcn.00420956
add esp, 0x10
push str.GameID5
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40bfd7
xorps xmm0, xmm0
mov word [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 6], 0
jmp 0x40bff0
shl eax, 0xd
push 0xa
add eax, 0x443e7e
push eax
lea eax, [ebp - 0x10]
push 0xb
push eax
call fcn.00420956
add esp, 0x10
push dword [0x4426a4]
call ebx
push 2
push dword [0x4426a4]
call edi
xor al, al
lea ecx, [ebp - 0x10bc]
mov byte [ebp - 0x1122], al
lea esi, [ebp - 0x3c]
mov byte [ebp - 0x1149], al
xor eax, eax
mov dword [ebp - 0x112c], eax
mov dword [ebp - 0x1144], ecx
mov dword [ebp - 0x1148], esi
nop dword [eax]
cmp byte [esi], 0
je 0x40c2c7
push esi
push dword [ebp - 0x1130]
push str.SELECT_cLevel_Class_Inventory_CtlCode_FROM_Character_WHERE_AccountID_s_AND_Name_s
push 0x442698
call fcn.00413700
add esp, 0x10
test al, al
je 0x40c2af
push dword [0x4426a4]
call dword [ebp - 0x1140]
cmp ax, 0x64
je 0x40c2af
mov eax, dword [ebp - 0x112c]
movq xmm0, qword [esi]
mov byte [ebp - 0x1120], al
mov ax, word [esi + 8]
mov word [ebp - 0x1117], ax
mov al, byte [esi + 0xa]
push str.cLevel
movq qword [ebp - 0x111f], xmm0
mov byte [ebp - 0x1115], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40c0af
or eax, eax
jmp 0x40c0c0
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.Class
mov word [ebp - 0x1114], ax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40c0da
or eax, eax
jmp 0x40c0eb
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
mov byte [ebp - 0x1112], al
lea eax, [ebp - 0x100]
push 0xc0
push eax
push str.Inventory
call fcn.00413a10
push str.CtlCode
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40c11a
or eax, eax
jmp 0x40c12b
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push dword [0x4426a4]
mov byte [ebp - 0x1111], al
call ebx
push 2
push dword [0x4426a4]
call edi
push 0x3c
lea eax, [ebp - 0x1110]
push 0xff
push eax
call fcn.00417d10
lea edx, [ebp - 0x110f]
add esp, 0xc
mov dword [ebp - 0x113c], edx
lea ecx, [ebp - 0xf9]
mov edi, 0xc
mov bl, byte [ecx - 7]
cmp bl, 0xff
jne 0x40c196
cmp byte [ecx], 0
jge 0x40c196
mov al, byte [ecx + 2]
and al, 0xf0
cmp al, 0xf0
jne 0x40c196
or al, bl
mov byte [ebp - 0x1121], bl
or ah, bl
or bh, bl
or bl, bl
jmp 0x40c1ad
mov dl, byte [ecx - 6]
mov al, byte [ecx + 2]
mov ah, byte [ecx + 1]
mov bh, byte [ecx]
mov byte [ebp - 0x1121], dl
mov edx, dword [ebp - 0x113c]
mov byte [edx - 1], bl
add ecx, 0x10
mov bl, byte [ebp - 0x1121]
mov byte [edx], bl
mov byte [edx + 1], bh
mov byte [edx + 2], ah
mov byte [edx + 3], al
add edx, 5
mov dword [ebp - 0x113c], edx
sub edi, 1
jne 0x40c170
push esi
push str.SELECT_G_Status_FROM_GuildMember_WHERE_Name_s
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x40c243
push dword [0x4426a4]
call dword [ebp - 0x1140]
cmp ax, 0x64
je 0x40c243
push str.G_Status
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40c20e
or eax, eax
jmp 0x40c21f
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push dword [0x4426a4]
mov ebx, dword [ebp - 0x1134]
mov byte [ebp - 0x10d4], al
call ebx
push 2
push dword [0x4426a4]
call dword [ebp - 0x1128]
jmp 0x40c266
push dword [0x4426a4]
mov ebx, dword [ebp - 0x1134]
call ebx
push 2
push dword [0x4426a4]
call dword [ebp - 0x1128]
mov byte [ebp - 0x10d4], 0xff
mov edx, dword [ebp - 0x1144]
lea esi, [ebp - 0x1120]
add dword [ebp - 0x1138], 0x4e
mov edi, edx
mov ecx, 0x13
add edx, 0x4e
rep movsd dword es:[edi], dword [esi]
mov cl, byte [ebp - 0x1122]
inc cl
mov dword [ebp - 0x1144], edx
mov byte [ebp - 0x1122], cl
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x1148]
mov edi, dword [ebp - 0x1128]
mov byte [ebp - 0x1149], cl
jmp 0x40c2c1
push dword [0x4426a4]
call ebx
push 2
push dword [0x4426a4]
call edi
mov eax, dword [ebp - 0x112c]
inc eax
add esi, 0xb
mov dword [ebp - 0x112c], eax
mov dword [ebp - 0x1148], esi
cmp eax, 5
jl 0x40c030
mov edx, dword [ebp - 0x1138]
mov eax, edx
shr eax, 8
mov byte [ebp - 0x115b], al
mov eax, dword [ebp - 0x114c]
mov dword [ebp - 0x10c0], eax
lea eax, [ebp - 0x10d0]
push edx
mov byte [ebp - 0x115a], dl
movups xmm0, xmmword [ebp - 0x115c]
push eax
push dword [ebp - 0x1160]
movups xmmword [ebp - 0x10d0], xmm0
call fcn.00414e90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004163e0
mov esp, ebp
pop ebp
ret