Function at 0x6359d0
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74ab8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x408
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esi + 0x14], eax
mov byte [esi + 0x9c], 1
mov ecx, dword [0x7fd5e8]
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], esp
push 1
mov edx, dword [ecx]
push eax
mov dword [ebp - 0x14], esi
call dword [edx + 4]
xor ebx, ebx
mov dword [esi + 0x18], eax
cmp eax, ebx
jne 0x635a59
push 0xc9
push 0x7c93d4
push str.m_pMap
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 0x10
cmp dword [esi + 0x98], ebx
je 0x635a82
push 0xcc
push 0x7c93d4
push str._m_pData
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
push 0xc
call fcn.00728cf3
add esp, 4
cmp eax, ebx
je 0x635aa2
mov dword [eax], 0x75aba4
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [esi + 0x98], eax
cmp dword [esi + 0x98], ebx
je 0x635b16
mov ecx, dword [esi + 0x14]
cmp ecx, 4
jb 0x635ad6
mov eax, dword [0x7fd4fc]
mov ebx, dword [0x7fd4f8]
sub eax, ebx
mov edx, eax
mov eax, 0x66666667
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jb 0x635b4c
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 [esi + 0x98]
mov eax, dword [ecx]
push 0
mov ebx, dword [edx]
call dword [eax + 0x20]
mov ecx, dword [esi + 0x98]
push eax
call dword [ebx + 0x20]
test al, al
jne 0x635b5b
push 0xd0
push 0x7c93d4
push str.m_pData__m_pData__Create_GameDataDefault____GetDynaNpc____ID_NONE_
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 0x10
lea eax, [ecx + ecx*4]
shl eax, 5
add eax, ebx
je 0x635af7
lea ecx, [eax + 4]
jmp 0x635af9
mov ecx, dword [esi + 0x98]
mov eax, dword [edi]
push eax
push 1
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 0x98]
mov eax, dword [edi + 4]
push eax
push 2
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 0x98]
mov eax, dword [edi + 0x14]
push eax
push 4
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 0x98]
mov eax, dword [ebp + 0x14]
push 0x10
push eax
mov edx, dword [ecx]
push 3
call dword [edx + 0x14]
mov ecx, dword [esi + 0x98]
mov eax, dword [edi + 0x18]
push eax
push 5
mov edx, dword [ecx]
call dword [edx + 0x10]
movsx eax, byte [edi + 0x6c]
mov ecx, dword [esi + 0x98]
push eax
push 6
mov edx, dword [ecx]
call dword [edx + 0x10]
movsx eax, byte [edi + 0x6d]
mov ecx, dword [esi + 0x98]
push eax
push 7
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 0x98]
push 0xffffffffffffffff
push 8
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 8]
push edx
push 9
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0xc]
push edx
push 0xa
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x10]
push edx
push 0xb
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x1c]
push edx
push 0xc
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x20]
push edx
push 0xd
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x24]
mov eax, dword [ecx]
push edx
push 0xe
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x28]
push edx
push 0xf
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x2c]
push edx
push 0x10
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x30]
push edx
push 0x11
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x34]
push edx
push 0x12
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x38]
push edx
push 0x13
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x3c]
push edx
push 0x14
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x40]
push edx
push 0x15
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x44]
push edx
push 0x16
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x48]
push edx
push 0x17
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
lea edx, [edi + 0x4c]
push 0x10
push edx
mov eax, dword [ecx]
push 0x18
call dword [eax + 0x14]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x5c]
push edx
push 0x19
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x60]
push edx
push 0x1a
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x60]
push edx
push 0x1b
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x64]
push edx
push 0x1c
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x68]
push edx
push 0x1d
mov eax, dword [ecx]
call dword [eax + 0x10]
test byte [edi + 0x68], 2
je 0x635d62
mov ecx, dword [esi + 0x98]
mov edx, dword [ebp + 0x10]
push edx
push 0x1e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x70]
push edx
push 0x1f
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x74]
push edx
push 0x20
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x78]
push edx
push 0x21
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x7c]
push edx
push 0x22
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x98]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x7fd5e8]
mov edx, dword [ecx]
call dword [edx + 0x44]
mov ecx, dword [esi + 0x98]
mov dword [esi + 0x94], eax
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 0x635e35
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x38]
test al, al
jne 0x635e35
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
test al, al
jne 0x635e35
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x44]
test al, al
jne 0x635e35
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xb0]
test al, al
jne 0x635e35
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
test al, al
jne 0x635e35
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
test al, al
je 0x635e7a
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.00637b10
test al, al
jne 0x635e7a
push 0x103
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 0x10
mov ecx, esi
call fcn.0063aab0
test al, al
jne 0x635ebb
push 0x107
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 0x10
push 0x14
call fcn.00728cf3
mov edi, eax
add esp, 4
mov dword [ebp + 0xc], edi
test edi, edi
mov dword [ebp - 4], 0
je 0x635ef3
lea edx, [ebp + 0xb]
lea ecx, [edi + 4]
push edx
mov dword [edi], 0x756e18
call fcn.005f98a0
mov dword [edi], 0x752fc8
mov byte [edi + 0x10], 1
jmp 0x635ef5
xor edi, edi
test edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x10], edi
jne 0x635f39
push 0x10b
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 0x10
mov eax, dword [esi + 8]
lea edi, [esi + 8]
push 1
mov ecx, edi
call dword [eax + 0x118]
mov ecx, dword [esi + 0x18]
push eax
call fcn.00485140
push 1
mov ecx, esi
call fcn.0063ba40
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x1d0]
mov ecx, dword [esi + 0x98]
push 4
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 0xa
jne 0x635ff5
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 0xa8]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa4]
mov ecx, eax
call fcn.00487d60
mov ecx, dword [esi + 0x98]
test ecx, ecx
jne 0x635fc2
push 0x19c
push 0x797d04
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x635ff5
mov edx, dword [ecx]
push 0x17
call dword [edx + 8]
test eax, eax
je 0x635ff5
mov ecx, dword [0x7fd5e8]
push 1
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ebx, eax
test ebx, ebx
je 0x635ff5
mov eax, dword [edi]
push 1
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, 0x21
je 0x636053
mov ecx, dword [esi + 0x98]
push 4
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 0x6f
je 0x636053
mov ecx, dword [esi + 0x98]
push 4
mov edx, dword [ecx]
call dword [edx + 8]
cmp eax, 0x2f
je 0x636053
mov ecx, dword [esi + 0x98]
push 4
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 0x30
je 0x636053
mov ecx, dword [esi + 0x98]
push 4
mov edx, dword [ecx]
call dword [edx + 8]
cmp eax, 0x7f
jne 0x636349
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x63609f
mov eax, dword [ecx]
mov dword [ebp - 4], 1
call dword [eax]
jmp 0x636091
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x4c], 0
push 0x14
call fcn.00728cf3
mov edi, eax
add esp, 4
mov dword [ebp + 0xc], edi
test edi, edi
mov dword [ebp - 4], 3
je 0x6360d7
lea edx, [ebp + 0xb]
lea ecx, [edi + 4]
push edx
mov dword [edi], 0x75ab88
call fcn.00643300
mov dword [edi], 0x75ab68
mov byte [edi + 0x10], 1
jmp 0x6360d9
xor edi, edi
test edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x4c], edi
jne 0x63611d
push 0x129
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 0x10
mov ecx, dword [esi + 0x98]
mov eax, dword [ecx]
call dword [eax + 4]
push eax
push str.cq_npc_income
lea ecx, [ebp - 0x414]
push str.SELECT__FROM__s_WHERE_npc_id_u
push ecx
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x10
lea eax, [ebp - 0x414]
mov edx, dword [ecx]
push 1
push eax
call dword [edx]
mov ebx, eax
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x14], ebx
test ebx, ebx
mov dword [ebp - 4], 4
je 0x636337
mov dword [ebp + 0xc], 0
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x60]
cmp dword [ebp + 0xc], eax
jae 0x636337
push 0xc
call fcn.00728cf3
mov edi, eax
add esp, 4
test edi, edi
je 0x6361ad
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 0x6361de
push 0x133
push 0x7c93d4
push str.pData__pData__Create_pRes_
push str.IF_OK
push 0x793720
call fcn.00401080
mov eax, dword [ebp + 0xc]
add esp, 0x14
inc eax
mov ecx, ebx
mov dword [ebp + 0xc], eax
mov eax, dword [ebx]
call dword [eax + 0x64]
jmp 0x636173
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 0x636324
mov edx, dword [edi]
push 5
mov ecx, edi
call dword [edx + 0x18]
test edx, edx
jl 0x636324
jg 0x636218
test eax, eax
jbe 0x636324
mov eax, dword [edi]
push 3
mov ecx, edi
call dword [eax + 8]
cmp eax, 1
je 0x636238
mov edx, dword [edi]
push 3
mov ecx, edi
call dword [edx + 8]
cmp eax, 2
jne 0x636324
mov ecx, dword [esi + 0x98]
test ecx, ecx
jne 0x63626c
push 0x227
push 0x797d04
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov dword [ebp + 0x14], 0
jmp 0x636274
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp + 0x14], eax
mov ebx, dword [esi + 0x14]
cmp ebx, 4
jb 0x63629f
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 0x6362c4
push 0x157
push 0x797a90
push str.CMapGroup::IsValidMapGroupProcessID_idProcess_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
jmp 0x6362d2
mov ecx, dword [0x7fd4f8]
lea eax, [ebx + ebx*4]
shl eax, 5
add eax, ecx
mov eax, dword [eax + 0x6c]
test eax, eax
jne 0x6362fe
push 0xde
push 0x797a90
push str.m_pBoothMgr
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ebx, ebx
jmp 0x636300
mov ebx, eax
mov edx, dword [ebp + 0x14]
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 + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebx]
call dword [eax + 0x64]
jmp 0x636173
test ebx, ebx
mov dword [ebp - 4], 0xffffffff
je 0x636349
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 0x636473
mov ecx, dword [esi + 0x98]
push 2
mov edx, dword [ecx]
call dword [edx + 8]
cmp eax, 1
je 0x636387
mov ecx, dword [esi + 0x98]
push 2
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 2
jne 0x636473
mov ecx, dword [esi + 0x98]
test ecx, ecx
jne 0x6363bb
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 0x6363c3
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp + 0xc], eax
mov edi, dword [esi + 0x14]
cmp edi, 4
jb 0x6363ee
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 0x636413
push 0x157
push 0x797a90
push str.CMapGroup::IsValidMapGroupProcessID_idProcess_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
jmp 0x63641b
lea eax, [edi + edi*4]
shl eax, 5
add eax, ebx
mov eax, dword [eax + 0x6c]
test eax, eax
jne 0x636447
push 0xde
push 0x797a90
push str.m_pBoothMgr
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ebx, ebx
jmp 0x636449
mov ebx, eax
mov ecx, dword [esi + 0x98]
mov edx, dword [ebp + 0xc]
mov edi, ecx
push 1
push edx
push 1
mov eax, dword [edi]
mov dword [ebp + 0x14], 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 ecx, dword [esi + 0x98]
push 4
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 0x2f
je 0x636497
mov ecx, dword [esi + 0x98]
push 4
mov edx, dword [ecx]
call dword [edx + 8]
cmp eax, 0x30
jne 0x63650a
mov ecx, dword [esi + 0x98]
test ecx, ecx
jne 0x6364c6
push 0x199
push 0x797d04
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ebx, ebx
jmp 0x6364cf
mov eax, dword [ecx]
push 0x14
call dword [eax + 8]
mov ebx, eax
mov edi, dword [0x7fd608]
test edi, edi
jne 0x6364fa
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 0x636556
mov edi, dword [0x7fd644]
test edi, edi
jne 0x636547
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 0x10