Function at 0x4616e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73cd4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc58
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
call fcn.00461650
mov ebx, eax
test ebx, ebx
je 0x4617be
mov eax, dword [ebp + 0xc]
push 1
push eax
mov ecx, ebx
call fcn.00648f30
lea ecx, [ebp - 0x864]
call fcn.006492d0
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00648f70
push eax
mov ecx, ebx
call fcn.00648f20
push eax
mov ecx, ebx
call fcn.00648ed0
push eax
lea ecx, [ebp - 0x864]
call fcn.006493b0
test eax, eax
jne 0x46177f
push 0x2611
push 0x79ce20
push str.msg.Create_pSkill__GetType____pSkill__GetLevel____pSkill__GetExp___
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x461792
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
lea eax, [ebp - 0x864]
push eax
call dword [edx + 0x1b0]
mov ecx, dword [esi + 8]
add esi, 8
push str.Your_weapon_skill_level_up_1lvl
push esi
call dword [ecx + 0x1b4]
add esp, 8
lea ecx, [ebp - 0x864]
mov dword [ebp - 4], 0xffffffff
call fcn.00649360
jmp 0x4619c8
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 0x24], 0
call dword [edx + 4]
mov edx, dword [esi]
mov dword [ebp - 0x20], eax
mov al, byte [ebp + 0xc]
xor ebx, ebx
push edi
mov ecx, esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x18], al
mov byte [ebp - 0x10], 1
mov dword [ebp + 0xc], ebx
call dword [edx + 4]
push eax
push 0x79a194
lea eax, [ebp - 0xc64]
push str.SELECT_id_FROM__s_WHERE_owner_id_u__type_d
push eax
call fcn.0070258b
mov ecx, dword [esi + 0x14]
add esp, 0x14
cmp ecx, 4
jb 0x461832
mov eax, dword [0x7fd4fc]
mov edi, dword [0x7fd4f8]
sub eax, edi
mov edx, eax
mov eax, 0x66666667
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jb 0x461857
push 0x157
push 0x797a90
push str.CMapGroup::IsValidMapGroupProcessID_idProcess_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ecx, ecx
jmp 0x46185f
lea ecx, [ecx + ecx*4]
shl ecx, 5
add ecx, edi
call fcn.004619e0
mov edx, dword [eax]
lea ecx, [ebp - 0xc64]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
mov dword [ebp - 4], 1
je 0x46188f
mov edx, dword [ebx]
push 0
mov ecx, ebx
call dword [edx + 0x44]
mov dword [ebp + 0xc], eax
mov ecx, dword [esi + 0x14]
cmp ecx, 4
jb 0x4618bb
mov eax, dword [0x7fd4fc]
mov edi, dword [0x7fd4f8]
sub eax, edi
mov edx, eax
mov eax, 0x66666667
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jb 0x461920
push 0x157
push 0x797a90
push str.CMapGroup::IsValidMapGroupProcessID_idProcess_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
lea ecx, [ebp - 0x24]
push eax
push ecx
call fcn.00648ce0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x46192f
push 0x262b
push 0x79ce20
push str.pSkill
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x4619b6
lea eax, [ecx + ecx*4]
shl eax, 5
add eax, edi
je 0x4618dc
lea ecx, [eax + 4]
jmp 0x4618de
mov ecx, dword [esi + 0x784]
push edi
mov edx, dword [ecx]
call dword [edx + 0xc]
lea ecx, [ebp - 0x444]
call fcn.006492d0
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00648f70
push eax
mov ecx, edi
call fcn.00648f20
push eax
mov ecx, edi
call fcn.00648ed0
push eax
lea ecx, [ebp - 0x444]
call fcn.006493b0
test eax, eax
jne 0x461994
push 0x2631
push 0x79ce20
push str.msg.Create_pSkill__GetType____pSkill__GetLevel____pSkill__GetExp___
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x4619a7
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
lea edx, [ebp - 0x444]
push edx
call dword [eax + 0x1b0]
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 1
call fcn.00649360
test ebx, ebx
mov dword [ebp - 4], 0xffffffff
je 0x4619c8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8