Function at 0x40a740
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1164
call fcn.0042b580
mov eax, dword [0x439008]
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 0x439d58
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.004112b0
mov esi, dword [sym.imp.ODBC32.dll_SQLFetch]
add esp, 0xc
mov dword [ebp - 0x1140], esi
test al, al
je 0x40a800
push dword [0x439d64]
call esi
cmp ax, 0x64
je 0x40a800
push dword [0x439d64]
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 0x40a84a
push dword [0x439d64]
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 [0x439d64]
mov dword [ebp - 0x1128], edi
call edi
push dword [ebp - 0x1130]
push str.INSERT_INTO_AccountCharacter__Id__VALUES___s_
push 0x439d58
call fcn.004112b0
add esp, 0xc
push dword [0x439d64]
call ebx
push 2
push dword [0x439d64]
call edi
push 0x37
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004159a0
add esp, 0xc
push dword [ebp - 0x1130]
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
push 0x439d58
call fcn.004112b0
add esp, 0xc
push dword [0x439d64]
call esi
push str.MoveCnt
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40a897
or eax, eax
jmp 0x40a8a8
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.ExtClass
mov byte [ebp - 0x114b], al
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40a8c1
or eax, eax
jmp 0x40a8d2
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.GameID1
mov byte [ebp - 0x114a], al
call fcn.00411500
cmp eax, 0xffffffff
je 0x40a900
shl eax, 0xd
push 0xa
add eax, 0x43b53e
push eax
lea eax, [ebp - 0x3c]
push 0xb
push eax
call fcn.0041d9ba
add esp, 0x10
push str.GameID2
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40a923
xorps xmm0, xmm0
mov word [ebp - 0x29], 0
movq qword [ebp - 0x31], xmm0
mov byte [ebp - 0x27], 0
jmp 0x40a93c
shl eax, 0xd
push 0xa
add eax, 0x43b53e
push eax
lea eax, [ebp - 0x31]
push 0xb
push eax
call fcn.0041d9ba
add esp, 0x10
push str.GameID3
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40a95f
xorps xmm0, xmm0
mov word [ebp - 0x1e], 0
movq qword [ebp - 0x26], xmm0
mov byte [ebp - 0x1c], 0
jmp 0x40a978
shl eax, 0xd
push 0xa
add eax, 0x43b53e
push eax
lea eax, [ebp - 0x26]
push 0xb
push eax
call fcn.0041d9ba
add esp, 0x10
push str.GameID4
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40a99b
xorps xmm0, xmm0
mov word [ebp - 0x13], 0
movq qword [ebp - 0x1b], xmm0
mov byte [ebp - 0x11], 0
jmp 0x40a9b4
shl eax, 0xd
push 0xa
add eax, 0x43b53e
push eax
lea eax, [ebp - 0x1b]
push 0xb
push eax
call fcn.0041d9ba
add esp, 0x10
push str.GameID5
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40a9d7
xorps xmm0, xmm0
mov word [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 6], 0
jmp 0x40a9f0
shl eax, 0xd
push 0xa
add eax, 0x43b53e
push eax
lea eax, [ebp - 0x10]
push 0xb
push eax
call fcn.0041d9ba
add esp, 0x10
push dword [0x439d64]
call ebx
push 2
push dword [0x439d64]
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 0x40acc7
push esi
push dword [ebp - 0x1130]
push str.SELECT_cLevel_Class_Inventory_CtlCode_FROM_Character_WHERE_AccountID_s_AND_Name_s
push 0x439d58
call fcn.004112b0
add esp, 0x10
test al, al
je 0x40acaf
push dword [0x439d64]
call dword [ebp - 0x1140]
cmp ax, 0x64
je 0x40acaf
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.00411500
cmp eax, 0xffffffff
jne 0x40aaaf
or eax, eax
jmp 0x40aac0
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.Class
mov word [ebp - 0x1114], ax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40aada
or eax, eax
jmp 0x40aaeb
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
mov byte [ebp - 0x1112], al
lea eax, [ebp - 0x100]
push 0xc0
push eax
push str.Inventory
call fcn.00411550
push str.CtlCode
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40ab1a
or eax, eax
jmp 0x40ab2b
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push dword [0x439d64]
mov byte [ebp - 0x1111], al
call ebx
push 2
push dword [0x439d64]
call edi
push 0x3c
lea eax, [ebp - 0x1110]
push 0xff
push eax
call fcn.004159a0
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 0x40ab96
cmp byte [ecx], 0
jge 0x40ab96
mov al, byte [ecx + 2]
and al, 0xf0
cmp al, 0xf0
jne 0x40ab96
or al, bl
mov byte [ebp - 0x1121], bl
or ah, bl
or bh, bl
or bl, bl
jmp 0x40abad
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 0x40ab70
push esi
push str.SELECT_G_Status_FROM_GuildMember_WHERE_Name_s
push 0x439d58
call fcn.004112b0
add esp, 0xc
test al, al
je 0x40ac43
push dword [0x439d64]
call dword [ebp - 0x1140]
cmp ax, 0x64
je 0x40ac43
push str.G_Status
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40ac0e
or eax, eax
jmp 0x40ac1f
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push dword [0x439d64]
mov ebx, dword [ebp - 0x1134]
mov byte [ebp - 0x10d4], al
call ebx
push 2
push dword [0x439d64]
call dword [ebp - 0x1128]
jmp 0x40ac66
push dword [0x439d64]
mov ebx, dword [ebp - 0x1134]
call ebx
push 2
push dword [0x439d64]
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 0x40acc1
push dword [0x439d64]
call ebx
push 2
push dword [0x439d64]
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 0x40aa30
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.00412cb0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414177
mov esp, ebp
pop ebp
ret