Function at 0x40d550
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x99c
mov eax, dword [0x44000c]
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 0x440e30
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.00416550
mov edi, dword [sym.imp.ODBC32.dll_SQLFetch]
add esp, 0xc
mov dword [ebp - 0x978], edi
test al, al
je 0x40d60b
push dword [0x440e3c]
call edi
cmp ax, 0x64
je 0x40d60b
push dword [0x440e3c]
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 0x40d655
push dword [0x440e3c]
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 [0x440e3c]
mov dword [ebp - 0x970], esi
call esi
push dword [ebp - 0x968]
push str.INSERT_INTO_AccountCharacter__Id__VALUES___s_
push 0x440e30
call fcn.00416550
add esp, 0xc
push dword [0x440e3c]
call ebx
push 2
push dword [0x440e3c]
call esi
push 0x37
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0041b490
add esp, 0xc
push dword [ebp - 0x968]
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
push 0x440e30
call fcn.00416550
add esp, 0xc
push dword [0x440e3c]
call edi
push str.MoveCnt
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40d6a2
or eax, eax
jmp 0x40d6b3
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.ExtClass
mov byte [ebp - 0x983], al
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40d6cc
or eax, eax
jmp 0x40d6dd
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.ExtWarehouse
mov byte [ebp - 0x982], al
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40d6f6
or eax, eax
jmp 0x40d707
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.GameID1
mov byte [ebp - 0x981], al
call fcn.004167c0
cmp eax, 0xffffffff
je 0x40d735
shl eax, 0xe
push 0xa
add eax, 0x441a62
push eax
lea eax, [ebp - 0x3c]
push 0xb
push eax
call fcn.00422930
add esp, 0x10
push str.GameID2
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40d758
xorps xmm0, xmm0
mov word [ebp - 0x29], 0
movq qword [ebp - 0x31], xmm0
mov byte [ebp - 0x27], 0
jmp 0x40d771
shl eax, 0xe
push 0xa
add eax, 0x441a62
push eax
lea eax, [ebp - 0x31]
push 0xb
push eax
call fcn.00422930
add esp, 0x10
push str.GameID3
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40d794
xorps xmm0, xmm0
mov word [ebp - 0x1e], 0
movq qword [ebp - 0x26], xmm0
mov byte [ebp - 0x1c], 0
jmp 0x40d7ad
shl eax, 0xe
push 0xa
add eax, 0x441a62
push eax
lea eax, [ebp - 0x26]
push 0xb
push eax
call fcn.00422930
add esp, 0x10
push str.GameID4
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40d7d0
xorps xmm0, xmm0
mov word [ebp - 0x13], 0
movq qword [ebp - 0x1b], xmm0
mov byte [ebp - 0x11], 0
jmp 0x40d7e9
shl eax, 0xe
push 0xa
add eax, 0x441a62
push eax
lea eax, [ebp - 0x1b]
push 0xb
push eax
call fcn.00422930
add esp, 0x10
push str.GameID5
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40d80c
xorps xmm0, xmm0
mov word [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 6], 0
jmp 0x40d825
shl eax, 0xe
push 0xa
add eax, 0x441a62
push eax
lea eax, [ebp - 0x10]
push 0xb
push eax
call fcn.00422930
add esp, 0x10
push dword [0x440e3c]
call ebx
push 2
push dword [0x440e3c]
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 0x40db83
push edi
push dword [ebp - 0x968]
push str.SELECT_cLevel_Class_Inventory_CtlCode_ResetCount_MasterResetCount_FROM_Character_WHERE_AccountID_s_AND_Name_s
push 0x440e30
call fcn.00416550
add esp, 0x10
test al, al
je 0x40db6b
push dword [0x440e3c]
call dword [ebp - 0x978]
cmp ax, 0x64
je 0x40db6b
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.004167c0
cmp eax, 0xffffffff
jne 0x40d8df
or eax, eax
jmp 0x40d8f0
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.Class
mov word [ebp - 0x94c], ax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40d90a
or eax, eax
jmp 0x40d91b
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov byte [ebp - 0x94a], al
lea eax, [ebp - 0x100]
push 0xc0
push eax
push str.Inventory
call fcn.00416810
push str.CtlCode
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40d94a
or eax, eax
jmp 0x40d95b
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.ResetCount
mov byte [ebp - 0x949], al
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40d974
or eax, eax
jmp 0x40d985
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.MasterResetCount
mov dword [ebp - 0x908], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40d99e
or eax, eax
jmp 0x40d9af
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov dword [ebp - 0x904], eax
call ebx
push 2
push dword [0x440e3c]
call esi
push 0x3c
lea eax, [ebp - 0x948]
push 0xff
push eax
call fcn.0041b490
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 0x40da1a
cmp byte [ecx], 0
jge 0x40da1a
mov al, byte [ecx + 2]
and al, 0xf0
cmp al, 0xf0
jne 0x40da1a
or al, bl
mov byte [ebp - 0x959], bl
or ah, bl
or bh, bl
or bl, bl
jmp 0x40da31
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 0x40d9f4
push edi
push str.SELECT_G_Status_FROM_GuildMember_WHERE_Name_s
push 0x440e30
call fcn.00416550
add esp, 0xc
test al, al
je 0x40dac9
push dword [0x440e3c]
call dword [ebp - 0x978]
cmp ax, 0x64
je 0x40dac9
push str.G_Status
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40da92
or eax, eax
jmp 0x40daa3
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov ebx, dword [ebp - 0x96c]
mov byte [ebp - 0x90c], al
call ebx
mov esi, dword [ebp - 0x970]
push 2
push dword [0x440e3c]
call esi
jmp 0x40daee
push dword [0x440e3c]
mov ebx, dword [ebp - 0x96c]
call ebx
mov esi, dword [ebp - 0x970]
push 2
push dword [0x440e3c]
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 0x40db89
push dword [0x440e3c]
call ebx
push 2
push dword [0x440e3c]
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 0x40d860
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.00418230
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004197fb
mov esp, ebp
pop ebp
ret