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

Disassembly:
push rbp
sub rsp, 0x150
lea rax, [dbg.__gxx_personality_sj0]
lea r8, [0x00402aff]
mov qword [rsp + 0x160], rcx
lea rcx, [rsp + 0x150]
mov dword [rsp + 0x168], edx
lea rdx, [0x00486038]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc8], r8
mov qword [rsp + 0xc0], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0xd0], rsp
mov qword [rsp + 0xb8], rdx
call dbg._Unwind_SjLj_Register
mov rcx, qword [rsp + 0x160]
mov dword [rsp + 0x2c], 0
movsxd rax, dword [rcx + 0x3c]
mov qword [rsp + 0x48], rcx
mov eax, dword [rcx + rax + 0x88]
add rax, rcx
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
mov r8d, dword [r8 + 0x24]
mov r9d, dword [r9 + 0x1c]
add rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x5c], r8d
mov dword [rsp + 0x60], r9d
jmp 0x402681
cmp dword [rsp + 0x168], 1
je 0x402770
cmp dword [rsp + 0x168], 2
je 0x402863
cmp dword [rsp + 0x168], 3
je 0x402951
cmp dword [rsp + 0x168], 4
je 0x4027f0
cmp dword [rsp + 0x168], 6
je 0x4028e0
mov r8, qword [rsp + 0x40]
add dword [rsp + 0x2c], 1
mov eax, dword [r8 + 0x18]
sub eax, 1
cmp eax, dword [rsp + 0x2c]
jb 0x402af0
mov eax, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov eax, dword [rdx + rax*4]
add rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x168]
test eax, eax
jne 0x402620
lea rcx, [rsp + 0xf0]
mov dword [rsp + 0x88], 0xffffffff
call sym.GetGetProcAddressStr__
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0xf0]
mov dword [rsp + 0x88], 1
call method.std::string.compare_char_const__const
mov dword [rsp + 0x58], eax
mov eax, dword [0x00488b10]
mov rcx, qword [rsp + 0xf0]
test eax, eax
jne 0x4029d0
mov eax, dword [rcx - 8]
lea edx, [rax - 1]
test eax, eax
mov dword [rcx - 8], edx
jle 0x4029e2
mov eax, dword [rsp + 0x58]
test eax, eax
jne 0x40263c
nop word [rax + rax]
mov r9, qword [rsp + 0x160]
mov r8, qword [rsp + 0x30]
mov edx, dword [rsp + 0x5c]
mov eax, dword [rsp + 0x60]
lea rcx, [r9 + r8*2]
movzx edx, word [rcx + rdx]
lea rcx, [rsp + 0x80]
lea rdx, [r9 + rdx*4]
mov eax, dword [rdx + rax]
add rax, r9
mov qword [rsp + 0x68], rax
call sym._Unwind_SjLj_Unregister
mov rax, qword [rsp + 0x68]
add rsp, 0x150
pop rbp
ret
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x88], 0xffffffff
call sym.GetCreateThreadStr__
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x88], 2
call method.std::string.compare_char_const__const
mov dword [rsp + 0x64], eax
mov eax, dword [0x00488b10]
mov rcx, qword [rsp + 0x100]
test eax, eax
jne 0x402a00
mov eax, dword [rcx - 8]
lea edx, [rax - 1]
test eax, eax
mov dword [rcx - 8], edx
jle 0x402a12
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x402720
cmp dword [rsp + 0x168], 4
jne 0x402658
nop word [rax + rax]
lea rcx, [rsp + 0x130]
mov dword [rsp + 0x88], 0xffffffff
call sym.GetVirtualAllocStr__
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x130]
mov dword [rsp + 0x88], 5
call method.std::string.compare_char_const__const
mov r8d, dword [0x00488b10]
mov dword [rsp + 0x78], eax
mov rcx, qword [rsp + 0x130]
test r8d, r8d
jne 0x402a90
mov eax, dword [rcx - 8]
lea edx, [rax - 1]
test eax, eax
mov dword [rcx - 8], edx
jle 0x402aa2
mov ecx, dword [rsp + 0x78]
test ecx, ecx
jne 0x402666
jmp 0x402720
lea rcx, [rsp + 0x110]
mov dword [rsp + 0x88], 0xffffffff
call sym.GetGetConsoleWindowStr__
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x110]
mov dword [rsp + 0x88], 3
call method.std::string.compare_char_const__const
mov dword [rsp + 0x70], eax
mov eax, dword [0x00488b10]
mov rcx, qword [rsp + 0x110]
test eax, eax
jne 0x402a30
mov eax, dword [rcx - 8]
lea edx, [rax - 1]
test eax, eax
mov dword [rcx - 8], edx
jle 0x402a42
mov r11d, dword [rsp + 0x70]
test r11d, r11d
je 0x402720
cmp dword [rsp + 0x168], 6
jne 0x402666
nop
lea rcx, [rsp + 0x140]
mov dword [rsp + 0x88], 0xffffffff
call sym.GetSleepStr__
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x140]
mov dword [rsp + 0x88], 6
call method.std::string.compare_char_const__const
mov edx, dword [0x00488b10]
mov dword [rsp + 0x7c], eax
mov rcx, qword [rsp + 0x140]
test edx, edx
jne 0x402ac0
mov eax, dword [rcx - 8]
lea edx, [rax - 1]
test eax, eax
mov dword [rcx - 8], edx
jle 0x402ad2
mov eax, dword [rsp + 0x7c]
test eax, eax
jne 0x402666
jmp 0x402720
lea rcx, [rsp + 0x120]
mov dword [rsp + 0x88], 0xffffffff
call sym.GetShowWindowStr__
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x120]
mov dword [rsp + 0x88], 4
call method.std::string.compare_char_const__const
mov r10d, dword [0x00488b10]
mov dword [rsp + 0x74], eax
mov rcx, qword [rsp + 0x120]
test r10d, r10d
jne 0x402a60
mov eax, dword [rcx - 8]
lea edx, [rax - 1]
test eax, eax
mov dword [rcx - 8], edx
jle 0x402a72
mov r9d, dword [rsp + 0x74]
test r9d, r9d
jne 0x402666
jmp 0x402720
mov eax, 0xffffffff
lock xadd dword [rcx - 8], eax
test eax, eax
jg 0x40270b
lea rdx, [rsp + 0x14a]
sub rcx, 0x18
call method.std::string::_Rep._M_destroy_std::allocator_char__const_
jmp 0x40270b
mov eax, 0xffffffff
lock xadd dword [rcx - 8], eax
test eax, eax
jg 0x4027d0
lea rdx, [rsp + 0x14b]
sub rcx, 0x18
call method.std::string::_Rep._M_destroy_std::allocator_char__const_
jmp 0x4027d0
mov eax, 0xffffffff
lock xadd dword [rcx - 8], eax
test eax, eax
jg 0x4028c3
lea rdx, [rsp + 0x14c]
sub rcx, 0x18
call method.std::string::_Rep._M_destroy_std::allocator_char__const_
jmp 0x4028c3
mov eax, 0xffffffff
lock xadd dword [rcx - 8], eax
test eax, eax
jg 0x4029b3
lea rdx, [rsp + 0x14d]
sub rcx, 0x18
call method.std::string::_Rep._M_destroy_std::allocator_char__const_
jmp 0x4029b3
mov eax, 0xffffffff
lock xadd dword [rcx - 8], eax
test eax, eax
jg 0x402852
lea rdx, [rsp + 0x14e]
sub rcx, 0x18
call method.std::string::_Rep._M_destroy_std::allocator_char__const_
jmp 0x402852
mov eax, 0xffffffff
lock xadd dword [rcx - 8], eax
test eax, eax
jg 0x402940
lea rdx, [rsp + 0x14f]
sub rcx, 0x18
call method.std::string::_Rep._M_destroy_std::allocator_char__const_
jmp 0x402940
mov r9d, dword [rsp + 0x2c]
mov qword [rsp + 0x30], r9
jmp 0x402720