Function at 0x409db0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3834
call fcn.004357f0
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x3618], 0
push 0x270f
push 0
lea eax, [ebp - 0x3617]
push eax
call fcn.00433530
add esp, 0xc
mov byte [ebp - 0x3624], 0
xor ecx, ecx
mov dword [ebp - 0x3623], ecx
mov dword [ebp - 0x361f], ecx
mov word [ebp - 0x361b], cx
mov byte [ebp - 0xf08], 0
push 0x36
push 0
lea edx, [ebp - 0xf07]
push edx
call fcn.00433530
add esp, 0xc
mov dword [ebp - 0xecc], 0
mov dword [ebp - 0x362c], 0x1c
lea eax, [ebp - 0x3618]
mov dword [ebp - 0x3628], eax
lea ecx, [ebp - 0x35fc]
mov dword [ebp - 0xed0], ecx
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 3
push edx
lea eax, [ebp - 0x3624]
push eax
call fcn.00434160
add esp, 0xc
mov ecx, dword [ebp - 0x3628]
mov edx, dword [ebp + 0x10]
mov ax, word [edx + 0xe]
mov word [ecx + 4], ax
lea ecx, [ebp - 0x3624]
push ecx
mov edx, dword [ebp - 0x3628]
add edx, 0xd
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x3624]
push eax
push str.SELECT_Id_FROM_AccountCharacter_WHERE_Id_s
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
movsx edx, ax
cmp edx, 0x64
jne 0x409ef4
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea eax, [ebp - 0x3624]
push eax
push str.INSERT_INTO_AccountCharacter__Id__VALUES___s_
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea edx, [ebp - 0x3624]
push edx
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
mov eax, dword [ebp + 8]
add eax, 0x7d80
push eax
call fcn.00408880
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
push str.MoveCnt
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov ecx, dword [ebp - 0x3628]
mov byte [ecx + 0x18], al
lea edx, [ebp - 0xf08]
push edx
push str.GameID1
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408bc0
lea eax, [ebp - 0xefd]
push eax
push str.GameID2
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408bc0
lea ecx, [ebp - 0xef2]
push ecx
push str.GameID3
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408bc0
lea edx, [ebp - 0xee7]
push edx
push str.GameID4
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408bc0
lea eax, [ebp - 0xedc]
push eax
push str.GameID5
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408bc0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov dword [ebp - 0x3630], 0
jmp 0x409ff4
mov ecx, dword [ebp - 0x3630]
add ecx, 1
mov dword [ebp - 0x3630], ecx
cmp dword [ebp - 0x3630], 5
jge 0x40a411
mov edx, dword [ebp - 0x3630]
imul edx, edx, 0xb
movsx eax, byte [ebp + edx - 0xf08]
test eax, eax
je 0x40a40c
mov ecx, dword [ebp - 0x3630]
imul ecx, ecx, 0xb
lea edx, [ebp + ecx - 0xf08]
push edx
call fcn.004345d0
add esp, 4
cmp eax, 4
jb 0x40a40c
mov eax, dword [ebp - 0x3630]
imul eax, eax, 0xb
lea ecx, [ebp + eax - 0xf08]
push ecx
push str.SELECT_cLevel__Class__CtlCode__DbVersion_FROM_vCharacterPreview_WHERE_Name_s
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0xc
cmp eax, 1
jne 0x40a3fe
mov eax, dword [ebp - 0x362c]
lea ecx, [ebp + eax - 0x3618]
mov dword [ebp - 0xed0], ecx
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
push str.cLevel
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov edx, dword [ebp - 0xed0]
mov word [edx + 0xc], ax
push str.Class
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov ecx, dword [ebp - 0xed0]
mov byte [ecx + 0xe], al
mov edx, dword [ebp - 0xed0]
movzx eax, word [edx + 0xc]
cmp eax, 0xdc
jl 0x40a0f0
mov ecx, dword [ebp - 0x3628]
movzx edx, byte [ecx + 0xc]
test edx, edx
jne 0x40a0f0
mov eax, dword [ebp - 0x3628]
mov byte [eax + 0xc], 1
mov ecx, dword [ebp - 0xed0]
movzx edx, word [ecx + 0xc]
cmp edx, 0xfa
jl 0x40a129
mov eax, dword [ebp - 0x3628]
movzx ecx, byte [eax + 0xc]
test ecx, ecx
je 0x40a11f
mov edx, dword [ebp - 0x3628]
movzx eax, byte [edx + 0xc]
cmp eax, 1
jne 0x40a129
mov ecx, dword [ebp - 0x3628]
mov byte [ecx + 0xc], 2
push str.CtlCode
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov edx, dword [ebp - 0xed0]
mov byte [edx + 0xf], al
push str.DbVersion
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov ecx, dword [ebp - 0xed0]
mov byte [ecx + 0x40], al
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov edx, dword [ebp - 0x3630]
imul edx, edx, 0xb
lea eax, [ebp + edx - 0xf08]
push eax
push str.SELECT_Inventory_FROM_Character_WHERE_Name_s
lea ecx, [ebp - 0x3830]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0xec8]
push edx
lea eax, [ebp - 0x3830]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408e20
cmp eax, 0x30
jae 0x40a1cc
push 0xec0
push 0xffffffffffffffff
lea ecx, [ebp - 0xec8]
push ecx
call fcn.00433530
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov edx, dword [ebp - 0xed0]
movzx eax, byte [edx + 0x40]
cmp eax, 3
jl 0x40a34d
push 0x30
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xed0]
add ecx, 0x10
push ecx
call fcn.00433530
add esp, 0xc
mov dword [ebp - 0x3834], 0
jmp 0x40a21e
mov edx, dword [ebp - 0x3834]
add edx, 1
mov dword [ebp - 0x3834], edx
cmp dword [ebp - 0x3834], 0xc
jge 0x40a34d
mov eax, dword [ebp - 0x3834]
shl eax, 4
movzx ecx, byte [ebp + eax - 0xec8]
cmp ecx, 0xff
jne 0x40a2c8
mov edx, dword [ebp - 0x3834]
shl edx, 4
movzx eax, byte [ebp + edx - 0xec1]
and eax, 0x80
je 0x40a2c8
mov ecx, dword [ebp - 0x3834]
shl ecx, 4
movzx edx, byte [ebp + ecx - 0xebe]
and edx, 0xf0
cmp edx, 0xf0
jne 0x40a2c8
mov eax, dword [ebp - 0x3834]
mov ecx, dword [ebp - 0xed0]
mov byte [ecx + eax*4 + 0x10], 0xff
mov edx, dword [ebp - 0x3834]
mov eax, dword [ebp - 0xed0]
mov byte [eax + edx*4 + 0x11], 0xff
mov ecx, dword [ebp - 0x3834]
mov edx, dword [ebp - 0xed0]
mov byte [edx + ecx*4 + 0x12], 0xff
mov eax, dword [ebp - 0x3834]
mov ecx, dword [ebp - 0xed0]
mov byte [ecx + eax*4 + 0x13], 0xff
jmp 0x40a348
mov edx, dword [ebp - 0x3834]
shl edx, 4
mov eax, dword [ebp - 0x3834]
mov ecx, dword [ebp - 0xed0]
mov dl, byte [ebp + edx - 0xec8]
mov byte [ecx + eax*4 + 0x10], dl
mov eax, dword [ebp - 0x3834]
shl eax, 4
mov ecx, dword [ebp - 0x3834]
mov edx, dword [ebp - 0xed0]
mov al, byte [ebp + eax - 0xec7]
mov byte [edx + ecx*4 + 0x11], al
mov ecx, dword [ebp - 0x3834]
shl ecx, 4
mov edx, dword [ebp - 0x3834]
mov eax, dword [ebp - 0xed0]
mov cl, byte [ebp + ecx - 0xec1]
mov byte [eax + edx*4 + 0x12], cl
mov edx, dword [ebp - 0x3834]
shl edx, 4
mov eax, dword [ebp - 0x3834]
mov ecx, dword [ebp - 0xed0]
mov dl, byte [ebp + edx - 0xebf]
mov byte [ecx + eax*4 + 0x13], dl
jmp 0x40a20f
mov eax, dword [ebp - 0x3630]
imul eax, eax, 0xb
lea ecx, [ebp + eax - 0xf08]
push ecx
push str.SELECT_G_Status_FROM_GuildMember_WHERE_Name_s
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
cwde
cmp eax, 0x64
je 0x40a3a7
push str.G_Status
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov ecx, dword [ebp - 0xed0]
mov byte [ecx + 0x41], al
jmp 0x40a3b1
mov edx, dword [ebp - 0xed0]
mov byte [edx + 0x41], 0xff
mov eax, dword [ebp - 0xed0]
mov cl, byte [ebp - 0x3630]
mov byte [eax], cl
mov edx, dword [ebp - 0x3630]
imul edx, edx, 0xb
lea eax, [ebp + edx - 0xf08]
push eax
mov ecx, dword [ebp - 0xed0]
add ecx, 1
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 0xecc]
add edx, 1
mov dword [ebp - 0xecc], edx
mov eax, dword [ebp - 0x362c]
add eax, 0x42
mov dword [ebp - 0x362c], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
jmp 0x409fe5
mov ecx, dword [ebp - 0xecc]
imul ecx, ecx, 0x42
add ecx, 0x1c
push ecx
push 0x91
mov edx, dword [ebp - 0x3628]
push edx
call fcn.00406330
add esp, 0xc
mov eax, dword [ebp - 0x3628]
mov cl, byte [ebp - 0xecc]
mov byte [eax + 6], cl
mov edx, dword [ebp - 0xecc]
imul edx, edx, 0x42
add edx, 0x1c
push edx
lea eax, [ebp - 0x3618]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407670
lea edx, [ebp - 0x3624]
push edx
mov eax, dword [ebp + 0x10]
movsx ecx, word [eax + 0xe]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00432d00
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret