Function at 0x4caa20
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9f62
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x62700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x50], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
call fcn.00488470
push ecx
lea ecx, [ebp - 0x154]
mov esi, eax
call fcn.0041c300
mov dword [ebp - 4], 0
cmp byte [0x631c98], 0
je 0x4caa84
mov ecx, dword [0x632104]
jmp 0x4caab6
cmp byte [0x631c99], 0
jne 0x4caab4
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
mov edx, str._Warning___ConfigManager::getNumber_
push 0x406700
push 0x32
call fcn.004064c0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor ecx, ecx
push ecx
push ecx
mov edx, str.SELECT__house_id____data__FROM__house_data__WHERE__world_id__
lea ecx, [ebp - 0x144]
call fcn.004064c0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x154]
call fcn.00404ef0
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [esi]
push eax
call dword [edx + 0x1c]
mov edi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
test edi, edi
mov dword [ebp - 0x88], edi
sete al
mov byte [ebp - 0x45], al
cmp ecx, 0x10
jb 0x4cab3b
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4cab2e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4cab2e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
mov al, byte [ebp - 0x45]
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
test al, al
je 0x4cab60
xor bl, bl
jmp 0x4caf2e
mov eax, dword [str.house_id]
mov ecx, dword [0x5dca94]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x24], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax]
mov byte [ebp - 4], 0
mov esi, eax
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x4cabd6
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4cabcc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cab28
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x631230]
cmp eax, dword [ecx + 4]
jg 0x4caf59
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], esi
push eax
lea eax, [ebp - 0xa0]
mov ecx, 0x631224
push eax
call fcn.0040b130
mov eax, dword [ebp - 0x98]
mov ecx, dword [0x631224]
cmp byte [eax + 0xd], 0
jne 0x4cac1e
cmp esi, dword [eax + 0x10]
jae 0x4cac20
mov eax, ecx
cmp eax, ecx
je 0x4cac29
mov eax, dword [eax + 0x14]
jmp 0x4cac2b
xor eax, eax
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x68], eax
mov eax, dword [str.data]
mov byte [ebp - 0x2c], 0
movlpd qword [ebp - 0x94], xmm0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
mov eax, dword [edi]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov byte [ebp - 4], 0
mov edi, eax
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x4cacae
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4caca4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cab28
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov dword [ebp - 0x60], vtable.PropStream.0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x94]
add edx, edi
mov dword [ebp - 0x5c], edi
mov eax, edx
mov dword [ebp - 0x58], edx
sub eax, edi
je 0x4caeff
mov eax, edx
xor ecx, ecx
xor esi, esi
mov byte [ebp - 0x45], cl
sub eax, edi
mov dword [ebp - 0x4c], esi
cmp eax, 2
jl 0x4caced
movzx ecx, word [edi]
add edi, 2
mov dword [ebp - 0x5c], edi
movzx eax, cx
mov dword [ebp - 0x7c], eax
mov eax, edx
sub eax, edi
cmp eax, 2
jl 0x4cad08
movzx esi, word [edi]
add edi, 2
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x5c], edi
movzx eax, si
mov dword [ebp - 0x80], eax
mov eax, edx
sub eax, edi
cmp eax, 1
jl 0x4cad20
mov al, byte [edi]
inc edi
mov byte [ebp - 0x45], al
mov dword [ebp - 0x5c], edi
mov eax, edx
xor esi, esi
sub eax, edi
cmp eax, 4
jl 0x4cad33
mov esi, dword [edi]
add edi, 4
mov dword [ebp - 0x5c], edi
movzx eax, byte [ebp - 0x45]
mov edx, eax
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0x4c]
mov word [ebp - 0x70], cx
mov word [ebp - 0x6e], dx
test eax, eax
je 0x4cae07
cmp byte [eax + 9], 0
je 0x4cae07
push dword [eax + 0x24]
call fcn.004a9c60
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
je 0x4caeb4
push 1
push dword [edi + 0x590]
mov ecx, edi
call fcn.005552e0
test esi, esi
je 0x4cadc4
test eax, eax
je 0x4cadb0
mov edi, dword [ebp - 0x50]
lea ebx, [eax + 0x18]
push 1
push ebx
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.004c8ab0
sub esi, 1
jne 0x4cad92
mov edi, dword [ebp - 0x54]
jmp 0x4cadc4
push 1
push 0
lea eax, [ebp - 0x60]
mov ecx, ebx
push eax
call fcn.004c8ab0
sub esi, 1
jne 0x4cadb0
cmp dword [edi + 0x228], 0
jne 0x4caeb4
mov edx, dword fs:[0x2c]
mov eax, dword [0x631188]
mov ecx, dword [edx]
cmp eax, dword [ecx + 4]
jg 0x4caf9b
push 0
push 1
push edi
mov ecx, 0x631110
call fcn.004c38f0
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
jmp 0x4caeb4
cmp word [ebp - 0x54], 0xf
movzx eax, dx
mov dword [ebp - 0x64], eax
movzx eax, cx
mov dword [ebp - 0x84], eax
ja 0x4caec8
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x78]
movzx ebx, ax
mov eax, dword [ebp - 0x80]
movzx eax, ax
mov dword [ebp - 0x4c], eax
add edx, 0xc
je 0x4caec8
nop dword [eax]
cmp byte [edx + 4], 0
jne 0x4cae6e
mov ecx, ebx
and eax, 0x8000
shr ecx, 1
and ecx, 0x4000
or ecx, eax
shr ecx, 0xe
mov edx, dword [edx + ecx*4 + 8]
test edx, edx
je 0x4caec8
mov eax, dword [ebp - 0x4c]
add ebx, ebx
add eax, eax
mov dword [ebp - 0x4c], eax
jmp 0x4cae40
mov eax, dword [ebp - 0x54]
movzx eax, ax
mov ebx, dword [edx + eax*4 + 0x20]
test ebx, ebx
je 0x4caec8
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x64]
and ecx, 7
and eax, 7
lea eax, [eax + ecx*8]
mov ebx, dword [ebx + eax*4]
test ebx, ebx
je 0x4caec8
test esi, esi
je 0x4caeb7
nop dword [eax]
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x60]
push 0
push ebx
push eax
call fcn.004c8ab0
sub esi, 1
jne 0x4caea0
mov edi, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
mov eax, edx
sub eax, edi
je 0x4caeff
mov ebx, dword [ebp - 0x50]
jmp 0x4cacd1
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
mov edx, str._Error___IOMapSerialize::loadMapBinary__Unserialization_of_invalid_tile
push 0x406700
call fcn.004064c0
push ecx
mov edx, str._at_position
mov ecx, eax
call fcn.004064c0
add esp, 4
lea edx, [ebp - 0x70]
mov ecx, eax
call fcn.005555d0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edi, dword [ebp - 0x88]
mov ecx, edi
mov byte [ebp - 4], 0
mov dword [ebp - 0x60], vtable.PropStream.0
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x4caf25
mov ebx, dword [ebp - 0x50]
jmp 0x4cab60
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov bl, 1
lea ecx, [ebp - 0x154]
call fcn.0041c440
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045ad9e
mov esp, ebp
pop ebp
ret 4
push 0x631230
call fcn.0045aedf
add esp, 4
cmp dword [0x631230], 0xffffffff
jne 0x4cabef
mov byte [ebp - 4], 3
call fcn.004b13d0
push 0x5b7860
call fcn.0045b336
add esp, 4
push 0x631230
call fcn.0045ae95
add esp, 4
jmp 0x4cabef
push 0x631188
call fcn.0045aedf
add esp, 4
cmp dword [0x631188], 0xffffffff
jne 0x4cadeb
mov byte [ebp - 4], 7
push 0x2c
mov dword [0x631110], 0x5fc300
mov dword [0x631114], 0
mov dword [0x631118], 0
call fcn.0045afb5
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x631114], eax
mov byte [ebp - 4], 8
push 0x2c
mov dword [0x63111c], 0
mov dword [0x631120], 0
call fcn.0045afb5
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push 0x5b76f0
mov dword [0x63111c], eax
call fcn.0045b336
add esp, 4
mov byte [ebp - 4], 6
push 0x631188
call fcn.0045ae95
add esp, 4
jmp 0x4cadeb