Function at 0x4cd5e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa38f
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x62700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x78], ebx
call fcn.00488470
mov esi, eax
push ecx
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x84], esi
call fcn.0041c300
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [ebp - 0x8c], eax
mov ecx, edx
mov edx, str.SELECT__house_id____player_id____bid__FROM__house_auctions__WHERE__endtime___
mov dword [ebp - 0x88], ecx
push ecx
push eax
lea ecx, [ebp - 0x148]
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___long_long___int64__]
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x158]
call fcn.00404ef0
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [esi]
push eax
call dword [edx + 0x1c]
mov esi, eax
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x5c]
test esi, esi
mov dword [ebp - 0x80], esi
sete al
mov byte [ebp - 0x71], al
cmp ecx, 0x10
jb 0x4cd6c5
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4cd6b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4cd6b8
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 - 0x71]
add esp, 8
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
test al, al
je 0x4cd6e2
mov bl, 1
jmp 0x4cdb41
mov byte [ebp - 0x71], 1
nop word [eax + eax]
lea ecx, [ebp - 0x140]
call fcn.00405f10
mov eax, dword [0x5dc154]
mov ecx, dword [0x5dc158]
and dword [ebp - 0x104], 0xffffffdf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x20], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
push eax
push ecx
mov edx, str.DELETE_FROM__house_auctions__WHERE__house_id__
lea ecx, [ebp - 0x148]
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_]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4cd79d
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4cd793
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cd6b2
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov eax, dword [0x5dbfd4]
mov ecx, dword [0x5dbfd8]
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 8
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
mov byte [ebp - 0x50], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
mov eax, dword [esi]
or ebx, 1
push ecx
mov ecx, esi
mov dword [ebp - 0x78], ebx
call dword [eax]
mov dword [ebp - 0x7c], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x631230]
cmp eax, dword [ecx + 4]
jg 0x4cdb6a
lea eax, [ebp - 0x7c]
mov ecx, 0x631224
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0040b130
mov ecx, dword [ebp - 0x9c]
mov edx, dword [0x631224]
cmp byte [ecx + 0xd], 0
jne 0x4cd82a
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ecx + 0x10]
jae 0x4cd82c
mov ecx, edx
cmp ecx, edx
je 0x4cd91c
mov edi, dword [ecx + 0x14]
test edi, edi
je 0x4cd91e
mov dword [ebp - 4], 7
or ebx, 8
mov edx, dword [ebp - 0x104]
xorps xmm0, xmm0
mov eax, edx
mov dword [ebp - 0x28], 0
and al, 0x22
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x78], ebx
movq qword [ebp - 0x98], xmm0
mov dword [ebp - 0x90], 0
cmp al, 2
je 0x4cd8ad
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
test ecx, ecx
je 0x4cd8ad
mov eax, dword [ebp - 0x130]
cmp ecx, dword [ebp - 0x108]
cmovb ecx, dword [ebp - 0x108]
mov edx, dword [eax]
sub ecx, edx
jmp 0x4cd8e0
test dl, 4
jne 0x4cd8d4
mov eax, dword [ebp - 0x124]
mov esi, dword [eax]
test esi, esi
je 0x4cd8d4
mov eax, dword [ebp - 0x134]
mov edx, dword [eax]
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax]
sub ecx, edx
add ecx, esi
jmp 0x4cd8e0
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0x98]
test edx, edx
je 0x4cd8ee
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00405890
and ebx, 0xfffffff7
or ebx, 4
mov ecx, dword [ebp - 0x84]
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 8
or ebx, 2
push edx
mov dword [ebp - 0x78], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
test al, al
je 0x4cd91e
mov byte [ebp - 0x72], 0
jmp 0x4cd922
xor edi, edi
mov byte [ebp - 0x72], 1
mov dword [ebp - 4], 4
test bl, 2
je 0x4cd977
mov ecx, dword [ebp - 0x14]
and ebx, 0xfffffffd
cmp ecx, 0x10
jb 0x4cd965
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4cd95b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cd6b2
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
test bl, 1
je 0x4cd9cc
mov ecx, dword [ebp - 0x44]
and ebx, 0xfffffffe
cmp ecx, 0x10
jb 0x4cd9ba
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4cd9b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cd6b2
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp byte [ebp - 0x72], 0
je 0x4cd9de
mov esi, dword [ebp - 0x80]
mov byte [ebp - 0x71], 0
jmp 0x4cdb26
movq xmm0, qword [str.player_id]
mov al, byte [0x5dc364]
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 9
movq qword [ebp - 0x40], xmm0
mov byte [ebp - 0x38], al
mov byte [ebp - 0x37], 0
mov esi, dword [ebp - 0x80]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov dword [edi + 0x24], eax
sub esp, 0x18
mov eax, esp
mov ecx, edi
mov dword [eax], 0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
call fcn.004b0fa0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x4cda7f
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4cda75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cd6b2
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov ax, word [0x5dc358]
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x40], 0
mov word [ebp - 0x40], ax
mov al, byte [0x5dc35a]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 3
mov byte [ebp - 0x3e], al
mov byte [ebp - 0x3d], 0
mov byte [ebp - 4], 0xa
mov edx, dword fs:[0x2c]
mov eax, dword [0x631230]
mov ecx, dword [edx]
cmp eax, dword [ecx + 4]
jg 0x4cdbaf
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, esi
call dword [eax]
push eax
push dword [ebp - 0x88]
mov ecx, 0x631220
push dword [ebp - 0x8c]
push edi
call fcn.004acf80
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x4cdb26
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4cdb1c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cd6b2
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x4cd6f0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
mov bl, byte [ebp - 0x71]
lea ecx, [ebp - 0x158]
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 - 0x10]
xor ecx, ebp
call fcn.0045ad9e
mov esp, ebp
pop ebp
ret
push 0x631230
call fcn.0045aedf
add esp, 4
cmp dword [0x631230], 0xffffffff
jne 0x4cd7fb
mov dword [ebp - 4], 5
call fcn.004b13d0
push 0x5b7860
call fcn.0045b336
add esp, 4
push 0x631230
call fcn.0045ae95
add esp, 4
jmp 0x4cd7fb
push 0x631230
call fcn.0045aedf
add esp, 4
cmp dword [0x631230], 0xffffffff
jne 0x4cdacc
mov byte [ebp - 4], 0xb
call fcn.004b13d0
push 0x5b7860
call fcn.0045b336
add esp, 4
mov byte [ebp - 4], 0xa
push 0x631230
call fcn.0045ae95
add esp, 4
jmp 0x4cdacc