Function at 0x636580
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74abbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
mov eax, dword [ebp + 8]
push ebx
mov bl, byte [ebp + 0x10]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x98]
cmp eax, edi
mov dword [ebp - 0x14], esi
mov byte [esi + 0x9c], bl
je 0x6365e5
push 0x15f
push 0x7c93d4
push str._m_pData
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
test bl, bl
push 0xc
je 0x6365ff
call fcn.00728cf3
add esp, 4
cmp eax, edi
je 0x63661d
mov dword [eax], 0x75aba4
jmp 0x636611
call fcn.00728cf3
add esp, 4
cmp eax, edi
je 0x63661d
mov dword [eax], 0x75abe8
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [esi + 0x98], eax
mov ecx, dword [esi + 0x98]
cmp ecx, edi
je 0x636634
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx]
push eax
call dword [edx + 0x24]
test al, al
jne 0x63666a
push 0x16c
push 0x7c93d4
push str.m_pData__m_pData__Create_pRecordset_
push str.IF_NOT
push 0x793720
call fcn.00401080
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 0x98]
mov edi, dword [0x7fd5e8]
push 0
push 9
mov edx, dword [ecx]
mov ebx, dword [edi]
call dword [edx + 8]
push eax
mov ecx, edi
call dword [ebx + 4]
mov ebx, eax
test ebx, ebx
jne 0x6366a2
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov al, byte [ebp + 0x10]
test al, al
je 0x636820
mov ecx, dword [0x7fd5e8]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [esi + 0x98]
mov dword [esi + 0x94], eax
push 4
mov edx, dword [ecx]
call dword [edx + 8]
cmp eax, 0xa
jne 0x63677c
mov ecx, dword [esi + 0x14]
cmp ecx, 4
jb 0x636700
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 0x636725
push 0x157
push 0x797a90
push str.CMapGroup::IsValidMapGroupProcessID_idProcess_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
jmp 0x63672d
lea eax, [ecx + ecx*4]
shl eax, 5
add eax, edi
mov eax, dword [eax + 0x70]
test eax, eax
jne 0x636759
push 0xdf
push 0x797a90
push str.m_pSynWarMgr
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor edi, edi
jmp 0x63675b
mov edi, eax
mov ecx, dword [esi + 0x98]
push 1
mov edx, dword [ecx]
call dword [edx + 8]
push eax
mov eax, dword [esi + 0x94]
push eax
mov ecx, edi
call fcn.00519b70
jmp 0x636831
mov ecx, dword [esi + 0x98]
push 4
mov edx, dword [ecx]
call dword [edx + 8]
cmp eax, 0x7c
jne 0x636831
mov ecx, dword [esi + 0x14]
cmp ecx, 4
jb 0x6367be
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 0x6367e3
push 0x157
push 0x797a90
push str.CMapGroup::IsValidMapGroupProcessID_idProcess_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
jmp 0x6367eb
lea eax, [ecx + ecx*4]
shl eax, 5
add eax, edi
mov eax, dword [eax + 0x70]
test eax, eax
jne 0x636815
push 0xdf
push 0x797a90
push str.m_pSynWarMgr
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
mov ecx, dword [esi + 0x94]
mov dword [eax + 0x54], ecx
jmp 0x636831
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [esi + 0x94], eax
mov ecx, dword [esi + 0x98]
push 0xa
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 0x98]
mov dword [esi + 0x1c], eax
push 0xb
mov edx, dword [ecx]
call dword [edx + 8]
mov dword [esi + 0x20], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
test al, al
jne 0x6368af
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x38]
test al, al
jne 0x6368af
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
test al, al
jne 0x6368af
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x44]
test al, al
jne 0x6368af
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xb0]
test al, al
jne 0x6368af
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x50]
test al, al
jne 0x6368af
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
test al, al
jne 0x6368af
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x34]
test al, al
je 0x6368f4
mov eax, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.00637b10
test al, al
jne 0x6368f4
push 0x190
push 0x7c93d4
push str.CreateFuncObj_idProcess_
push str.IF_NOT
push 0x793720
call fcn.00401080
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.0063aab0
test al, al
jne 0x636935
push 0x194
push 0x7c93d4
push str.CheckSortMutex__
push str.IF_NOT
push 0x793720
call fcn.00401080
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x14
call fcn.00728cf3
add esp, 4
mov dword [ebp + 0x10], eax
test eax, eax
mov dword [ebp - 4], 0
je 0x636958
push 1
mov ecx, eax
call fcn.00643140
jmp 0x63695a
xor eax, eax
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x10], eax
jne 0x63699e
push 0x198
push 0x7c93d4
push str.m_setStatus
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 8]
lea edi, [esi + 8]
mov ecx, edi
mov dword [esi + 0x18], ebx
call dword [edx + 0x20]
mov dword [ebp + 8], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
mov edx, dword [edi]
mov ecx, edi
mov ebx, eax
call dword [edx + 0xa4]
test ebx, ebx
mov dword [ebp + 0x10], eax
jl 0x6369eb
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx]
call dword [edx + 0x18]
cmp ebx, eax
jge 0x6369eb
mov ebx, dword [ebp + 8]
test ebx, ebx
jl 0x6369eb
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx]
call dword [edx + 0x1c]
cmp ebx, eax
jl 0x636a5b
mov ecx, dword [esi + 0x98]
test ecx, ecx
jne 0x636a1a
push 0x227
push 0x797d04
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ebx, ebx
jmp 0x636a21
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x20]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
push eax
push ebx
push 0x7c94e8
call fcn.0040a420
add esp, 0x10
mov dword [esi + 0x18], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 0x118]
mov ecx, dword [esi + 0x18]
push eax
call fcn.00485140
push 1
mov ecx, esi
call fcn.0063ba40
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1d0]
mov ecx, dword [esi + 0x98]
push 4
mov edx, dword [ecx]
call dword [edx + 8]
cmp eax, 0xa
jne 0x636b13
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0xa8]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0xa4]
mov ecx, eax
call fcn.00487d60
mov ecx, dword [esi + 0x98]
test ecx, ecx
jne 0x636ae0
push 0x19c
push 0x797d04
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x636b13
mov eax, dword [ecx]
push 0x17
call dword [eax + 8]
test eax, eax
je 0x636b13
mov ecx, dword [0x7fd5e8]
push 1
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ebx, eax
test ebx, ebx
je 0x636b13
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0xa8]
push eax
mov ecx, ebx
call fcn.00487d60
mov ecx, dword [esi + 0x98]
push 4
mov edx, dword [ecx]
call dword [edx + 8]
cmp eax, 0x7c
jne 0x636b61
mov ecx, dword [esi + 0x98]
test ecx, ecx
jne 0x636b54
push 0x19c
push 0x797d04
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
jmp 0x636b5b
mov eax, dword [ecx]
push 0x14
call dword [eax + 8]
mov dword [esi + 0xd8], eax
mov ecx, dword [esi + 0x98]
push 4
mov edx, dword [ecx]
call dword [edx + 8]
cmp eax, 0x21
je 0x636bbf
mov ecx, dword [esi + 0x98]
push 4
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 0x6f
je 0x636bbf
mov ecx, dword [esi + 0x98]
push 4
mov edx, dword [ecx]
call dword [edx + 8]
cmp eax, 0x2f
je 0x636bbf
mov ecx, dword [esi + 0x98]
push 4
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 0x30
je 0x636bbf
mov ecx, dword [esi + 0x98]
push 4
mov edx, dword [ecx]
call dword [edx + 8]
cmp eax, 0x7f
jne 0x636eb5
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x636c0b
mov eax, dword [ecx]
mov dword [ebp - 4], 1
call dword [eax]
jmp 0x636bfd
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x4c], 0
push 0x14
call fcn.00728cf3
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
test edi, edi
mov dword [ebp - 4], 3
je 0x636c43
lea ecx, [ebp + 0x13]
mov dword [edi], 0x75ab88
push ecx
lea ecx, [edi + 4]
call fcn.006432c0
mov dword [edi], 0x75ab68
mov byte [edi + 0x10], 1
jmp 0x636c45
xor edi, edi
test edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x4c], edi
jne 0x636c89
push 0x1c1
push 0x7c93d4
push str.m_setIncome
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
call dword [edx + 4]
push eax
push str.cq_npc_income
lea eax, [ebp - 0x418]
push str.SELECT__FROM__s_WHERE_npc_id_u
push eax
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x10
lea eax, [ebp - 0x418]
mov edx, dword [ecx]
push 1
push eax
call dword [edx]
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
test ebx, ebx
mov dword [ebp - 4], 4
je 0x636ea3
mov dword [ebp + 8], 0
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x60]
cmp dword [ebp + 8], eax
jae 0x636ea3
push 0xc
call fcn.00728cf3
mov edi, eax
add esp, 4
test edi, edi
je 0x636d19
xor eax, eax
mov dword [edi], 0x75ab24
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x24]
test al, al
jne 0x636d4a
push 0x1cb
push 0x7c93d4
push str.pData__pData__Create_pRes_
push str.IF_OK
push 0x793720
call fcn.00401080
mov eax, dword [ebp + 8]
add esp, 0x14
inc eax
mov ecx, ebx
mov dword [ebp + 8], eax
mov eax, dword [ebx]
call dword [eax + 0x64]
jmp 0x636cdf
mov ecx, dword [esi + 0x4c]
push edi
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x98]
push 4
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 0x21
jne 0x636e90
mov edx, dword [edi]
push 5
mov ecx, edi
call dword [edx + 0x18]
test edx, edx
jl 0x636e90
jg 0x636d84
test eax, eax
jbe 0x636e90
mov eax, dword [edi]
push 3
mov ecx, edi
call dword [eax + 8]
cmp eax, 1
je 0x636da4
mov edx, dword [edi]
push 3
mov ecx, edi
call dword [edx + 8]
cmp eax, 2
jne 0x636e90
mov ecx, dword [esi + 0x98]
test ecx, ecx
jne 0x636dd8
push 0x227
push 0x797d04
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov dword [ebp + 0xc], 0
jmp 0x636de0
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp + 0xc], eax
mov ebx, dword [esi + 0x14]
cmp ebx, 4
jb 0x636e0b
mov ecx, dword [0x7fd4fc]
mov edx, dword [0x7fd4f8]
sub ecx, edx
mov eax, 0x66666667
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp ebx, edx
jb 0x636e30
push 0x157
push 0x797a90
push str.CMapGroup::IsValidMapGroupProcessID_idProcess_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
jmp 0x636e3e
mov ecx, dword [0x7fd4f8]
lea eax, [ebx + ebx*4]
shl eax, 5
add eax, ecx
mov eax, dword [eax + 0x6c]
test eax, eax
jne 0x636e6a
push 0xde
push 0x797a90
push str.m_pBoothMgr
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ebx, ebx
jmp 0x636e6c
mov ebx, eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edi]
push 2
push edx
push 2
mov ecx, edi
call dword [eax + 8]
mov edx, dword [edi]
push eax
push 3
mov ecx, edi
call dword [edx + 8]
push eax
mov ecx, ebx
call fcn.004ddaf0
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov ecx, ebx
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebx]
call dword [eax + 0x64]
jmp 0x636cdf
test ebx, ebx
mov dword [ebp - 4], 0xffffffff
je 0x636eb5
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [esi + 0x98]
push 4
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 0x21
jne 0x636fdf
mov ecx, dword [esi + 0x98]
push 2
mov edx, dword [ecx]
call dword [edx + 8]
cmp eax, 1
je 0x636ef3
mov ecx, dword [esi + 0x98]
push 2
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 2
jne 0x636fdf
mov ecx, dword [esi + 0x98]
test ecx, ecx
jne 0x636f27
push 0x227
push 0x797d04
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov dword [ebp + 8], 0
jmp 0x636f2f
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp + 8], eax
mov edi, dword [esi + 0x14]
cmp edi, 4
jb 0x636f5a
mov ecx, dword [0x7fd4fc]
mov ebx, dword [0x7fd4f8]
sub ecx, ebx
mov eax, 0x66666667
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, edx
jb 0x636f7f
push 0x157
push 0x797a90
push str.CMapGroup::IsValidMapGroupProcessID_idProcess_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
jmp 0x636f87
lea eax, [edi + edi*4]
shl eax, 5
add eax, ebx
mov eax, dword [eax + 0x6c]
test eax, eax
jne 0x636fb3
push 0xde
push 0x797a90
push str.m_pBoothMgr
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ebx, ebx
jmp 0x636fb5
mov ebx, eax
mov ecx, dword [esi + 0x98]
mov edx, dword [ebp + 8]
mov edi, ecx
push 1
push edx
push 1
mov eax, dword [edi]
mov dword [ebp + 0xc], ecx
call dword [eax + 8]
mov edx, dword [edi]
push eax
push 2
mov ecx, edi
call dword [edx + 8]
push eax
mov ecx, ebx
call fcn.004ddaf0
mov al, byte [esi + 0x9c]
test al, al
jne 0x63700d
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
push 1
call dword [eax + 0x44]
test eax, eax
jbe 0x63700d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push eax
push 0x7c94c4
call fcn.00401080
add esp, 8
mov ecx, dword [esi + 0x98]
push 4
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 0x2f
je 0x637031
mov ecx, dword [esi + 0x98]
push 4
mov edx, dword [ecx]
call dword [edx + 8]
cmp eax, 0x30
jne 0x6370a4
mov ecx, dword [esi + 0x98]
test ecx, ecx
jne 0x637060
push 0x199
push 0x797d04
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ebx, ebx
jmp 0x637069
mov eax, dword [ecx]
push 0x14
call dword [eax + 8]
mov ebx, eax
mov edi, dword [0x7fd608]
test edi, edi
jne 0x637094
push 0x1bf
push 0x797a90
push str.g_pCastleLandPointMgr
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 4]
push eax
mov ecx, edi
call fcn.004dcbd0
mov ecx, dword [esi + 0x98]
push 4
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 0x7f
jne 0x6370f0
mov edi, dword [0x7fd644]
test edi, edi
jne 0x6370e1
push 0x1d7
push 0x797a90
push str.g_pAdNpcSet
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push eax
mov ecx, edi
call fcn.005e7cf0
mov ecx, esi
call fcn.006410e0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc