Function at 0x4a5b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [0x62700c]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
push 0
push 0x2710
push edx
push eax
call fcn.0059a950
xor ebx, ebx
mov dword [esp + 0x50], eax
or ecx, 0xffffffff
mov dword [esi], ebx
cmp dword [edi + 0x154], 3
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x4c], ecx
jne 0x4a5bd2
mov dword [edi + 0x154], 4
cmp byte [0x631c98], bl
je 0x4a5e54
cmp byte [0x63201a], bl
je 0x4a5e83
mov ecx, dword [edi + 0x1a4]
lea eax, [edi + 0x1a0]
mov edi, dword [eax]
push 0x16
mov dword [esp + 0x50], ecx
mov edi, dword [edi]
mov dword [esp + 0x28], edi
call fcn.00473710
mov ecx, dword [esp + 0x2c]
cmp edi, dword [ecx + 0x1a0]
je 0x4a5e40
test al, al
je 0x4a5d32
movzx eax, word [edi + 0xc]
mov ecx, dword [ecx + 0x160]
push eax
movzx eax, word [edi + 0xa]
push eax
movzx eax, word [edi + 8]
push eax
call fcn.00518420
mov edx, eax
mov dword [esp + 0x28], edx
test edx, edx
je 0x4a5d15
mov ecx, dword [edx + 0x14]
and ecx, 0xfffffffd
mov eax, ecx
mov dword [edx + 0x14], ecx
shr eax, 6
test al, 1
jne 0x4a5d15
shr ecx, 0x1d
lea ebx, [edx + 0x1c]
mov eax, ebx
and cl, 1
jne 0x4a5c6e
mov eax, dword [ebx]
test eax, eax
je 0x4a5d15
inc dword [esp + 0x30]
mov esi, ebx
test cl, cl
jne 0x4a5c82
mov esi, dword [ebx]
mov esi, dword [esi + 4]
mov ecx, edx
call fcn.00434340
test eax, eax
je 0x4a5d15
mov edi, dword [esp + 0x34]
mov ecx, edx
call fcn.00434340
cmp esi, dword [eax + 8]
je 0x4a5d11
mov eax, dword [esi]
movzx eax, word [eax + 0xc]
push eax
call fcn.004046f0
cmp byte [eax + 0x13], 0
je 0x4a5cff
mov ecx, dword [esi]
cmp byte [ecx + 0x14], 0
jne 0x4a5cff
call fcn.00433e90
test al, al
jne 0x4a5cff
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push dword [esi]
push 0
call fcn.004a9620
mov edx, dword [esp + 0x28]
mov ecx, ebx
mov eax, dword [edx + 0x14]
shr eax, 0x1d
and al, 1
jne 0x4a5cec
mov ecx, dword [ebx]
test ecx, ecx
je 0x4a5cfb
mov esi, ebx
test al, al
jne 0x4a5cf8
mov esi, dword [ebx]
mov esi, dword [esi + 4]
inc dword [edi]
jmp 0x4a5d06
mov edx, dword [esp + 0x28]
add esi, 4
mov ecx, edx
call fcn.00434340
test eax, eax
jne 0x4a5c98
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi]
mov edi, eax
mov dword [esp + 0x24], edi
cmp eax, dword [ecx + 0x1a0]
jne 0x4a5c21
jmp 0x4a5e38
movzx eax, word [edi + 0xc]
mov ecx, dword [ecx + 0x160]
push eax
movzx eax, word [edi + 0xa]
push eax
movzx eax, word [edi + 8]
push eax
call fcn.00518420
mov edx, eax
mov dword [esp + 0x28], edx
test edx, edx
je 0x4a5e20
mov eax, dword [edx + 0x14]
and eax, 0xfffffffd
mov dword [edx + 0x14], eax
test al, 1
jne 0x4a5e20
shr eax, 0x1d
lea ebx, [edx + 0x1c]
mov ecx, ebx
and al, 1
jne 0x4a5d79
mov ecx, dword [ebx]
test ecx, ecx
je 0x4a5e20
inc dword [esp + 0x30]
mov esi, ebx
test al, al
jne 0x4a5d8d
mov esi, dword [ebx]
mov esi, dword [esi + 4]
mov ecx, edx
call fcn.00434340
test eax, eax
je 0x4a5e20
mov edi, dword [esp + 0x34]
mov ecx, edx
call fcn.00434340
cmp esi, dword [eax + 8]
je 0x4a5e1c
mov eax, dword [esi]
movzx eax, word [eax + 0xc]
push eax
call fcn.004046f0
cmp byte [eax + 0x13], 0
je 0x4a5e0a
mov ecx, dword [esi]
cmp byte [ecx + 0x14], 0
jne 0x4a5e0a
call fcn.00433e90
test al, al
jne 0x4a5e0a
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push dword [esi]
push 0
call fcn.004a9620
mov edx, dword [esp + 0x28]
mov ecx, ebx
mov eax, dword [edx + 0x14]
shr eax, 0x1d
and al, 1
jne 0x4a5df7
mov ecx, dword [ebx]
test ecx, ecx
je 0x4a5e06
mov esi, ebx
test al, al
jne 0x4a5e03
mov esi, dword [ebx]
mov esi, dword [esi + 4]
inc dword [edi]
jmp 0x4a5e11
mov edx, dword [esp + 0x28]
add esi, 4
mov ecx, edx
call fcn.00434340
test eax, eax
jne 0x4a5da3
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi]
mov edi, eax
mov dword [esp + 0x24], edi
cmp eax, dword [ecx + 0x1a0]
jne 0x4a5d32
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
lea ecx, [edi + 0x1a0]
call fcn.004357b0
jmp 0x4a6319
cmp byte [0x631c99], bl
jne 0x4a5e83
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
mov edx, str._Warning___ConfigManager::getBool_
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_____]
push 0x16
call fcn.00473710
xor ebx, ebx
test al, al
je 0x4a60d6
mov dword [esp + 0x44], ebx
nop dword [eax + eax]
mov edx, dword [edi + 0x160]
mov eax, 1
mov dword [esp + 0x28], eax
cmp dword [edx + 0x28], eax
jb 0x4a60c2
nop dword [eax + eax]
mov edi, 1
mov ecx, edx
mov dword [esp + 0x3c], edi
cmp dword [edx + 0x24], edi
jb 0x4a60a7
movzx esi, ax
mov eax, edi
movzx ebx, bx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x24], esi
push ebx
push esi
push eax
mov ecx, edx
call fcn.00518420
mov ebx, eax
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x4a607e
mov edx, dword [ebx + 0x14]
mov ecx, edx
shr ecx, 6
test cl, 1
jne 0x4a607e
shr edx, 0x1d
lea esi, [ebx + 0x1c]
mov eax, esi
and dl, 1
jne 0x4a5f1c
mov eax, dword [esi]
test eax, eax
je 0x4a607a
inc dword [esp + 0x30]
test dl, dl
jne 0x4a5f2e
mov esi, dword [esi]
mov esi, dword [esi + 4]
mov ecx, ebx
call fcn.00434340
test eax, eax
je 0x4a607a
mov ecx, ebx
call fcn.00434340
cmp esi, dword [eax + 8]
je 0x4a6076
mov eax, dword [esi]
movzx eax, word [eax + 0xc]
push eax
call fcn.004046f0
cmp byte [eax + 0x13], 0
je 0x4a6064
mov ecx, dword [esi]
cmp byte [ecx + 0x14], 0
jne 0x4a6064
mov eax, dword [0x5fefec]
movq xmm0, qword [str.scriptprotected]
mov edi, dword [ecx + 4]
mov dword [esp + 0x6c], eax
mov ax, word [0x5feff0]
mov dword [esp + 0x64], 0
mov word [esp + 0x70], ax
mov al, byte [0x5feff2]
movq qword [esp + 0x64], xmm0
mov edx, dword [esp + 0x64]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0xf
mov byte [esp + 0x72], al
mov byte [esp + 0x73], 0
mov dword [esp + 0x38], edx
test edi, edi
je 0x4a6030
lea eax, [esp + 0x64]
mov ecx, edi
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0041cb30
mov ebx, dword [esp + 0x60]
cmp byte [ebx + 0xd], 0
jne 0x4a602c
cmp dword [ebx + 0x24], 0x10
lea edx, [ebx + 0x10]
jb 0x4a5ff0
mov edx, dword [ebx + 0x10]
push dword [ebx + 0x20]
cmp dword [esp + 0x7c], 0x10
lea ecx, [esp + 0x68]
push edx
cmovae ecx, dword [esp + 0x40]
mov edx, 0xf
call fcn.0041cab0
shr eax, 0x1f
add esp, 8
test al, al
jne 0x4a602c
cmp ebx, dword [edi]
je 0x4a602c
xor edi, edi
lea eax, [ebx + 0x2c]
cmp dword [ebx + 0x44], 4
mov ebx, dword [esp + 0x40]
cmove edi, eax
jmp 0x4a6032
mov ebx, dword [esp + 0x40]
xor edi, edi
test edi, edi
je 0x4a603b
cmp byte [edi], 0
jne 0x4a6064
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push dword [esi]
push 0
call fcn.004a9620
mov ecx, ebx
call fcn.00434340
test eax, eax
je 0x4a605c
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x34]
inc dword [eax]
jmp 0x4a6067
add esi, 4
mov ecx, ebx
call fcn.00434340
test eax, eax
jne 0x4a5f40
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
inc edi
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x3c], edi
mov ecx, dword [eax + 0x160]
mov edx, ecx
movzx eax, di
cmp eax, dword [ecx + 0x24]
jbe 0x4a5ee4
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x44]
inc eax
mov edx, ecx
mov dword [esp + 0x28], eax
movzx eax, ax
cmp eax, dword [ecx + 0x28]
mov eax, dword [esp + 0x28]
jbe 0x4a5ec0
mov edi, dword [esp + 0x2c]
inc ebx
mov dword [esp + 0x44], ebx
cmp bx, 0x10
jb 0x4a5ea0
jmp 0x4a6311
mov dword [esp + 0x40], ebx
nop word [eax + eax]
mov edx, dword [edi + 0x160]
mov eax, 1
mov dword [esp + 0x38], eax
cmp dword [edx + 0x28], eax
jb 0x4a6302
nop dword [eax + eax]
mov edi, 1
mov ecx, edx
mov dword [esp + 0x3c], edi
cmp dword [edx + 0x24], edi
jb 0x4a62e7
movzx esi, ax
mov eax, edi
movzx ebx, bx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x24], esi
push ebx
push esi
push eax
mov ecx, edx
call fcn.00518420
mov ebx, eax
mov dword [esp + 0x44], ebx
test ebx, ebx
je 0x4a62be
test byte [ebx + 0x14], 1
jne 0x4a62be
mov ecx, dword [ebx + 0x14]
lea esi, [ebx + 0x1c]
shr ecx, 0x1d
mov eax, esi
and cl, 1
jne 0x4a6158
mov eax, dword [esi]
test eax, eax
je 0x4a62ba
inc dword [esp + 0x30]
test cl, cl
jne 0x4a616a
mov esi, dword [esi]
mov esi, dword [esi + 4]
mov ecx, ebx
call fcn.00434340
test eax, eax
je 0x4a62ba
nop dword [eax]
mov ecx, ebx
call fcn.00434340
cmp esi, dword [eax + 8]
je 0x4a62b6
mov eax, dword [esi]
movzx eax, word [eax + 0xc]
push eax
call fcn.004046f0
cmp byte [eax + 0x13], 0
je 0x4a62a4
mov ecx, dword [esi]
cmp byte [ecx + 0x14], 0
jne 0x4a62a4
mov eax, dword [0x5fefec]
movq xmm0, qword [str.scriptprotected]
mov edi, dword [ecx + 4]
mov dword [esp + 0x6c], eax
mov ax, word [0x5feff0]
mov dword [esp + 0x64], 0
mov word [esp + 0x70], ax
mov al, byte [0x5feff2]
movq qword [esp + 0x64], xmm0
mov edx, dword [esp + 0x64]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0xf
mov byte [esp + 0x72], al
mov byte [esp + 0x73], 0
mov dword [esp + 0x28], edx
test edi, edi
je 0x4a6270
lea eax, [esp + 0x64]
mov ecx, edi
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0041cb30
mov ebx, dword [esp + 0x60]
cmp byte [ebx + 0xd], 0
jne 0x4a626c
cmp dword [ebx + 0x24], 0x10
lea edx, [ebx + 0x10]
jb 0x4a6230
mov edx, dword [ebx + 0x10]
push dword [ebx + 0x20]
cmp dword [esp + 0x7c], 0x10
lea ecx, [esp + 0x68]
push edx
cmovae ecx, dword [esp + 0x30]
mov edx, 0xf
call fcn.0041cab0
shr eax, 0x1f
add esp, 8
test al, al
jne 0x4a626c
cmp ebx, dword [edi]
je 0x4a626c
xor edi, edi
lea eax, [ebx + 0x2c]
cmp dword [ebx + 0x44], 4
mov ebx, dword [esp + 0x44]
cmove edi, eax
jmp 0x4a6272
mov ebx, dword [esp + 0x44]
xor edi, edi
test edi, edi
je 0x4a627b
cmp byte [edi], 0
jne 0x4a62a4
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push dword [esi]
push 0
call fcn.004a9620
mov ecx, ebx
call fcn.00434340
test eax, eax
je 0x4a629c
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x34]
inc dword [eax]
jmp 0x4a62a7
add esi, 4
mov ecx, ebx
call fcn.00434340
test eax, eax
jne 0x4a6180
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
inc edi
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x3c], edi
mov ecx, dword [eax + 0x160]
mov edx, ecx
movzx eax, di
cmp eax, dword [ecx + 0x24]
jbe 0x4a6124
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x40]
inc eax
mov edx, ecx
mov dword [esp + 0x38], eax
movzx eax, ax
cmp eax, dword [ecx + 0x28]
mov eax, dword [esp + 0x38]
jbe 0x4a6100
mov edi, dword [esp + 0x2c]
inc ebx
mov dword [esp + 0x40], ebx
cmp bx, 0x10
jb 0x4a60e0
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
cmp dword [edi + 0x154], 4
jne 0x4a6330
mov dword [edi + 0x154], 3
nop dword [eax]
mov eax, dword [esi]
cmp ebx, 1
mov ecx, 0x5ba787
mov edi, 0x5ce694
cmove edi, ecx
mov esi, 0x5ce5dc
push ebx
mov ecx, 0x5ba78e
cmp eax, 1
push eax
cmove esi, ecx
mov edx, str.__CLEAN:_Removed
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
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___unsigned_int_]
mov edx, str._item
mov ecx, eax
call fcn.004064c0
mov edx, esi
mov ecx, eax
call fcn.004064c0
push ecx
mov edx, str._from
mov ecx, eax
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___unsigned_int_]
mov edx, str._tile
mov ecx, eax
call fcn.004064c0
mov edx, edi
mov ecx, eax
call fcn.004064c0
mov eax, dword [esp + 0x4c]
test eax, eax
js 0x4a63e3
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
mov edx, 0x5ce8f4
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 edx, str._were_marked_
mov ecx, eax
call fcn.004064c0
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
push 0x406700
push 0
push 0x2710
push edx
push eax
call fcn.0059a950
sub eax, dword [esp + 0x54]
mov ecx, eax
sbb edx, dword [esp + 0x58]
call fcn.0059ad70
divsd xmm0, qword [0x601400]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
sub esp, 8
mov edx, str._in
movsd qword [esp], xmm0
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___double_]
push ecx
mov edx, 0x5ce834
mov ecx, eax
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___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045ad9e
mov esp, ebp
pop ebp
ret 4