Function at 0x40df60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x99c
mov eax, dword [0x442008]
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 - 0x990], ax
movzx eax, word [ecx + 8]
push ecx
mov word [ebp - 0x986], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Id_FROM_AccountCharacter_WHERE_Id_s
push 0x447690
mov dword [ebp - 0x998], edx
mov byte [ebp - 0x994], 0xc2
mov byte [ebp - 0x991], 1
mov dword [ebp - 0x960], 0x16
mov dword [ebp - 0x968], ecx
movq qword [ebp - 0x98e], xmm0
mov byte [ebp - 0x984], al
call fcn.00416db0
mov edi, dword [sym.imp.ODBC32.dll_SQLFetch]
add esp, 0xc
mov dword [ebp - 0x978], edi
test al, al
je 0x40e01b
push dword [0x44769c]
call edi
cmp ax, 0x64
je 0x40e01b
push dword [0x44769c]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov dword [ebp - 0x96c], ebx
call ebx
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x970], esi
jmp 0x40e065
push dword [0x44769c]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov dword [ebp - 0x96c], ebx
call ebx
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
mov dword [ebp - 0x970], esi
call esi
push dword [ebp - 0x968]
push str.INSERT_INTO_AccountCharacter__Id__VALUES___s_
push 0x447690
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
call ebx
push 2
push dword [0x44769c]
call esi
push 0x37
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0041b210
add esp, 0xc
push dword [ebp - 0x968]
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
push 0x447690
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
call edi
push str.MoveCnt
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e0b2
or eax, eax
jmp 0x40e0c3
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.ExtClass
mov byte [ebp - 0x983], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e0dc
or eax, eax
jmp 0x40e0ed
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.ExtWarehouse
mov byte [ebp - 0x982], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e106
or eax, eax
jmp 0x40e117
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.GameID1
mov byte [ebp - 0x981], al
call fcn.00417040
cmp eax, 0xffffffff
je 0x40e145
shl eax, 0xd
push 0xa
add eax, 0x4482be
push eax
lea eax, [ebp - 0x3c]
push 0xb
push eax
call fcn.00423e56
add esp, 0x10
push str.GameID2
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e168
xorps xmm0, xmm0
mov word [ebp - 0x29], 0
movq qword [ebp - 0x31], xmm0
mov byte [ebp - 0x27], 0
jmp 0x40e181
shl eax, 0xd
push 0xa
add eax, 0x4482be
push eax
lea eax, [ebp - 0x31]
push 0xb
push eax
call fcn.00423e56
add esp, 0x10
push str.GameID3
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e1a4
xorps xmm0, xmm0
mov word [ebp - 0x1e], 0
movq qword [ebp - 0x26], xmm0
mov byte [ebp - 0x1c], 0
jmp 0x40e1bd
shl eax, 0xd
push 0xa
add eax, 0x4482be
push eax
lea eax, [ebp - 0x26]
push 0xb
push eax
call fcn.00423e56
add esp, 0x10
push str.GameID4
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e1e0
xorps xmm0, xmm0
mov word [ebp - 0x13], 0
movq qword [ebp - 0x1b], xmm0
mov byte [ebp - 0x11], 0
jmp 0x40e1f9
shl eax, 0xd
push 0xa
add eax, 0x4482be
push eax
lea eax, [ebp - 0x1b]
push 0xb
push eax
call fcn.00423e56
add esp, 0x10
push str.GameID5
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e21c
xorps xmm0, xmm0
mov word [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 6], 0
jmp 0x40e235
shl eax, 0xd
push 0xa
add eax, 0x4482be
push eax
lea eax, [ebp - 0x10]
push 0xb
push eax
call fcn.00423e56
add esp, 0x10
push dword [0x44769c]
call ebx
push 2
push dword [0x44769c]
call esi
xor al, al
lea edi, [ebp - 0x3c]
mov byte [ebp - 0x95a], al
mov byte [ebp - 0x980], al
xor eax, eax
mov dword [ebp - 0x964], eax
lea eax, [ebp - 0x8ea]
mov dword [ebp - 0x97c], eax
xor eax, eax
nop
cmp byte [edi], 0
je 0x40e593
push edi
push dword [ebp - 0x968]
push str.SELECT_cLevel_Class_Inventory_CtlCode_ResetCount_MasterResetCount_FROM_Character_WHERE_AccountID_s_AND_Name_s
push 0x447690
call fcn.00416db0
add esp, 0x10
test al, al
je 0x40e57b
push dword [0x44769c]
call dword [ebp - 0x978]
cmp ax, 0x64
je 0x40e57b
mov eax, dword [ebp - 0x964]
movq xmm0, qword [edi]
mov byte [ebp - 0x958], al
mov ax, word [edi + 8]
mov word [ebp - 0x94f], ax
mov al, byte [edi + 0xa]
push str.cLevel
movq qword [ebp - 0x957], xmm0
mov byte [ebp - 0x94d], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e2ef
or eax, eax
jmp 0x40e300
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Class
mov word [ebp - 0x94c], ax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e31a
or eax, eax
jmp 0x40e32b
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
mov byte [ebp - 0x94a], al
lea eax, [ebp - 0x100]
push 0xc0
push eax
push str.Inventory
call fcn.004170c0
push str.CtlCode
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e35a
or eax, eax
jmp 0x40e36b
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.ResetCount
mov byte [ebp - 0x949], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e384
or eax, eax
jmp 0x40e395
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.MasterResetCount
mov dword [ebp - 0x908], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e3ae
or eax, eax
jmp 0x40e3bf
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x904], eax
call ebx
push 2
push dword [0x44769c]
call esi
push 0x3c
lea eax, [ebp - 0x948]
push 0xff
push eax
call fcn.0041b210
lea edx, [ebp - 0x947]
add esp, 0xc
mov dword [ebp - 0x974], edx
lea ecx, [ebp - 0xf9]
mov esi, 0xc
mov bl, byte [ecx - 7]
cmp bl, 0xff
jne 0x40e42a
cmp byte [ecx], 0
jge 0x40e42a
mov al, byte [ecx + 2]
and al, 0xf0
cmp al, 0xf0
jne 0x40e42a
or al, bl
mov byte [ebp - 0x959], bl
or ah, bl
or bh, bl
or bl, bl
jmp 0x40e441
mov dl, byte [ecx - 6]
mov al, byte [ecx + 2]
mov ah, byte [ecx + 1]
mov bh, byte [ecx]
mov byte [ebp - 0x959], dl
mov edx, dword [ebp - 0x974]
mov byte [edx - 1], bl
add ecx, 0x10
mov bl, byte [ebp - 0x959]
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 - 0x974], edx
sub esi, 1
jne 0x40e404
push edi
push str.SELECT_G_Status_FROM_GuildMember_WHERE_Name_s
push 0x447690
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40e4d9
push dword [0x44769c]
call dword [ebp - 0x978]
cmp ax, 0x64
je 0x40e4d9
push str.G_Status
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40e4a2
or eax, eax
jmp 0x40e4b3
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov ebx, dword [ebp - 0x96c]
mov byte [ebp - 0x90c], al
call ebx
mov esi, dword [ebp - 0x970]
push 2
push dword [0x44769c]
call esi
jmp 0x40e4fe
push dword [0x44769c]
mov ebx, dword [ebp - 0x96c]
call ebx
mov esi, dword [ebp - 0x970]
push 2
push dword [0x44769c]
call esi
mov byte [ebp - 0x90c], 0xff
mov eax, dword [ebp - 0x97c]
movups xmm0, xmmword [ebp - 0x958]
mov edx, dword [ebp - 0x960]
mov cl, byte [ebp - 0x95a]
add edx, 0x58
movups xmmword [eax], xmm0
mov dword [ebp - 0x960], edx
movups xmm0, xmmword [ebp - 0x948]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x938]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x928]
movups xmmword [eax + 0x30], xmm0
movups xmm0, xmmword [ebp - 0x918]
movups xmmword [eax + 0x40], xmm0
movq xmm0, qword [ebp - 0x908]
movq qword [eax + 0x50], xmm0
add eax, 0x58
inc cl
mov dword [ebp - 0x97c], eax
mov eax, dword [ebp - 0x964]
mov byte [ebp - 0x95a], cl
mov byte [ebp - 0x980], cl
jmp 0x40e599
push dword [0x44769c]
call ebx
push 2
push dword [0x44769c]
call esi
mov eax, dword [ebp - 0x964]
mov edx, dword [ebp - 0x960]
inc eax
add edi, 0xb
mov dword [ebp - 0x964], eax
cmp eax, 5
jl 0x40e270
mov eax, edx
mov byte [ebp - 0x992], dl
shr eax, 8
mov byte [ebp - 0x993], al
mov eax, dword [ebp - 0x984]
movups xmm0, xmmword [ebp - 0x994]
mov dword [ebp - 0x8f0], eax
mov ax, word [ebp - 0x980]
mov word [ebp - 0x8ec], ax
lea eax, [ebp - 0x900]
push edx
push eax
push dword [ebp - 0x998]
movups xmmword [ebp - 0x900], xmm0
call fcn.004182a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004198d7
mov esp, ebp
pop ebp
ret