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

Disassembly:
push rsi
push rdi
sub rsp, 0x2b8
mov rax, qword [0x14066d440]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov dword [rsp + 0x34], 0
lea rax, [0x1406748c8]
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
cmp qword [rax + 0x20], 0
je 0x140058e26
lea rax, [rsp + 0x260]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_26
rep stosb byte [rdi], al
lea rax, [rsp + 0x260]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov rcx, rax
call fcn.14004d010
nop
lea rax, [rsp + 0x260]
mov qword [rsp + 0x168], rax
lea rax, [0x1406748c8]
mov rax, qword [rax]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
add rax, 0x178
mov qword [rsp + 0xf0], rax
mov rax, qword [0x1406745e8]
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x238], 0
mov r8d, 8
lea rdx, [rsp + 0x238]
mov rcx, qword [rsp + 0xf0]
call fcn.140074430
mov rax, qword [rsp + 0x238]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x38], 0
jmp 0x1400587d3
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
lea rax, [0x1406748c8]
mov rax, qword [rax]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
add rax, 0x180
mov qword [rsp + 0x108], rax
mov rax, qword [0x1406745e8]
mov qword [rsp + 0x178], rax
mov dword [rsp + 0x234], 0
mov r8d, 4
lea rdx, [rsp + 0x234]
mov rcx, qword [rsp + 0x108]
call fcn.140074430
mov eax, dword [rsp + 0x234]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x38], eax
jae 0x140058df7
mov rax, qword [0x1406745e8]
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x258], 0
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x110]
lea rax, [rcx + rax*8]
mov r8d, 8
lea rdx, [rsp + 0x258]
mov rcx, rax
call fcn.140074430
mov rax, qword [rsp + 0x258]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x3c], 0
jmp 0x1400588bf
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov rax, qword [0x1406745e8]
mov qword [rsp + 0x188], rax
mov dword [rsp + 0x230], 0
mov rax, qword [rsp + 0x78]
add rax, 0xa8
mov r8d, 4
lea rdx, [rsp + 0x230]
mov rcx, rax
call fcn.140074430
mov eax, dword [rsp + 0x230]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x3c], eax
jae 0x140058df2
mov rax, qword [0x1406745e8]
mov qword [rsp + 0x190], rax
mov qword [rsp + 0x250], 0
mov rax, qword [rsp + 0x78]
add rax, 0xa0
mov r8d, 8
lea rdx, [rsp + 0x250]
mov rcx, rax
call fcn.140074430
mov rax, qword [rsp + 0x250]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xc8], rax
mov rax, qword [0x1406745e8]
mov qword [rsp + 0x198], rax
mov qword [rsp + 0x248], 0
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0xc8]
lea rax, [rcx + rax*8]
mov r8d, 8
lea rdx, [rsp + 0x248]
mov rcx, rax
call fcn.140074430
mov rax, qword [rsp + 0x248]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov rax, qword [0x1406745e8]
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x240], 0
mov rax, qword [rsp + 0x40]
add rax, 0x198
mov r8d, 8
lea rdx, [rsp + 0x240]
mov rcx, rax
call fcn.140074430
mov rax, qword [rsp + 0x240]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xa0], rax
mov rax, qword [0x1406745e8]
mov qword [rsp + 0x1a8], rax
xorps xmm0, xmm0
movsd qword [rsp + 0x210], xmm0
xorps xmm0, xmm0
movsd qword [rsp + 0x218], xmm0
xorps xmm0, xmm0
movsd qword [rsp + 0x220], xmm0
lea rax, [rsp + 0x210]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x1b0], rax
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0xa0]
add rax, 0x120
mov r8d, Ordinal_26
lea rdx, [rsp + 0x210]
mov rcx, rax
call fcn.140074430
lea rax, [rsp + 0x210]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x160], rax
lea rax, [0x1406748c8]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
add rax, 0x68
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x1c8]
lea rcx, [rsp + 0x210]
mov rdi, rax
mov rsi, rcx
mov ecx, Ordinal_26
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1e0]
lea rcx, [rsp + 0x1c8]
mov rdi, rax
mov rsi, rcx
mov ecx, Ordinal_26
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0xd0]
call fcn.140070330
divsd xmm0, qword [0x1401a3f18]
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x60], xmm0
lea rax, [0x140674780]
mov rax, qword [rax]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
cvtsi2ss xmm0, dword [rax + 0x24]
comiss xmm0, dword [rsp + 0x60]
jbe 0x140058de8
mov rax, qword [0x1406745e8]
mov qword [rsp + 0x1b8], rax
mov dword [rsp + 0x22c], 0
mov rax, qword [rsp + 0x40]
add rax, 0x18
mov r8d, 4
lea rdx, [rsp + 0x22c]
mov rcx, rax
call fcn.140074430
mov eax, dword [rsp + 0x22c]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x98], eax
mov rax, qword [0x1406745e8]
mov qword [rsp + 0x1c0], rax
mov byte [rsp + 0x228], 0
mov rax, qword [rsp + 0x40]
add rax, 0xc38
mov r8d, 1
lea rdx, [rsp + 0x228]
mov rcx, rax
call fcn.140074430
movzx eax, byte [rsp + 0x228]
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
mov edx, eax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov qword [rsp + 0x128], rax
lea rdx, [0x14004c140]
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rax, [0x140674780]
mov rax, qword [rax]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax + 9]
test eax, eax
je 0x140058de8
cmp byte [rsp + 0x30], 2
jne 0x140058d71
call fcn.140094ac0
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x20], 0xff
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x200]
call fcn.14004ddf0
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov rcx, rax
call fcn.14008ed10
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x48], eax
movsd xmm0, qword [rsp + 0x218]
addsd xmm0, qword [0x1401a3ed8]
addsd xmm0, qword [0x1401a3ec8]
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x50], xmm0
movsd xmm0, qword [rsp + 0x210]
subsd xmm0, qword [0x1401a3ed0]
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x70], xmm0
movss xmm0, dword [rsp + 0x70]
movss dword [rsp + 0x80], xmm0
movss xmm0, dword [rsp + 0x50]
movss dword [rsp + 0x84], xmm0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x20], 0
lea r9, str.Chest
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x150]
call fcn.1400bdfa0
nop
lea rax, [rsp + 0x278]
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov rcx, rax
call fcn.14004cfc0
nop
lea rcx, [rsp + 0x278]
call fcn.14006cb10
nop
lea rax, [rsp + 0x298]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x298], rax
lea rdx, [rsp + 0x278]
lea rcx, [rsp + 0x260]
call fcn.140049ec0
nop
lea rax, [rsp + 0x278]
mov rcx, rax
call fcn.14006e350
nop
and dword [rsp + 0x34], 0xfffffffe
jmp 0x1400588b5
jmp 0x1400587c9
lea rcx, [0x140674810]
call fcn.14006fcb0
lea rdx, [rsp + 0x260]
lea rcx, [0x140674810]
call fcn.14004ecf0
nop
lea rcx, [rsp + 0x260]
call fcn.14006e1f0
nop
cvttss2si rax, dword [0x14066c9b4]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14019a660
add rsp, 0x2b8
pop rdi
pop rsi
ret