Function at 0x430498
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x48], 0
mov byte [rbp + 0x47], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov rax, qword [0x005867d0]
mov rax, qword [rax + 0x28]
mov eax, dword [rax + 0x40]
cmp eax, 1
jne 0x43064a
mov rax, qword [0x005867d0]
mov rax, qword [rax + 0x50]
mov rdx, qword [0x005867d0]
mov rcx, rax
call fcn.0048deb0
mov rax, qword [0x005867d0]
movzx eax, byte [rax]
and eax, 3
cmp al, 2
je 0x43063e
mov rax, qword [0x005867d0]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rdx, [0x00533053]
mov rcx, rax
call fcn.00440e3b
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0
je 0x43063e
mov rax, qword [rbp + 0x18]
movzx eax, byte [rax + 0x18]
test al, al
je 0x430584
mov rax, qword [rbp + 0x18]
movzx eax, byte [rax + 0x18]
cmp al, 1
je 0x430584
mov rax, qword [rbp + 0x18]
movzx eax, byte [rax + 0x18]
cmp al, 2
je 0x430584
mov rax, qword [rbp + 0x18]
movzx eax, byte [rax + 0x18]
cmp al, 5
jne 0x43063e
mov rax, qword [0x005867d0]
mov rax, qword [rax + 0x50]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x368]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x1b8]
mov rdx, qword [rbp + 0x18]
mov r8d, 1
mov rcx, qword [0x005867d0]
call rax
mov rax, qword [rbp + 0x18]
movzx eax, byte [rax + 0x59]
movzx eax, al
and eax, 3
cmp eax, 1
je 0x4305e6
mov rax, qword [rbp + 0x18]
movzx eax, byte [rax + 0x59]
and eax, 0xfffffffc
or eax, 2
mov edx, eax
mov rax, qword [rbp + 0x18]
mov byte [rax + 0x59], dl
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
movzx eax, byte [rax + 0x18]
mov byte [rbp + 0x47], al
mov rax, qword [rbp + 0x48]
add rax, 0x20
add rax, 8
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov rax, qword [rbp + 0x48]
mov byte [rax + 0x18], 3
mov rax, qword [rbp + 0x48]
mov rdx, qword [0x00586430]
add rdx, 0x230
mov qword [rax + 0x28], rdx
mov rax, qword [rbp + 0x48]
mov qword [rax + 0x30], 0
lea rcx, [0x0043030e]
call fcn.0040d8fe
mov rax, qword [0x005865d0]
mov rax, qword [rax + 0x50]
mov qword [rbp + 0x58], rax
cmp qword [rbp + 0x58], 0
jne 0x430670
lea rcx, str.LD_RUN_PATH
call sub.msvcrt.dll_getenv
mov qword [rbp + 0x58], rax
mov rax, qword [0x005867d0]
mov rax, qword [rax + 0x60]
mov qword [rbp + 0x50], rax
jmp 0x430767
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 8]
mov eax, dword [rax + 8]
cmp eax, 5
jne 0x430758
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0xf0]
mov rax, qword [rax + 0x310]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x430758
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
test al, al
je 0x430758
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.004fb5a0
mov qword [rbp + 0x38], rax
mov dword [rbp + 0x34], 0
mov rax, qword [0x005865e0]
movzx eax, byte [rax + 0x48]
movsx edx, al
mov rax, qword [rbp + 0x38]
mov rcx, rax
call sub.msvcrt.dll_strchr
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x430712
mov rax, qword [rbp - 0x18]
mov byte [rax], 0
mov dword [rbp + 0x34], 1
cmp qword [rbp + 0x38], 0
je 0x430737
mov rax, qword [rbp + 0x38]
movzx eax, byte [rax]
test al, al
je 0x430737
mov rax, qword [rbp + 0x38]
mov rdx, rax
lea rcx, [0x0059e8d8]
call fcn.0043033d
cmp dword [rbp + 0x34], 0
je 0x430748
add qword [rbp - 0x18], 1
mov rax, qword [rbp - 0x18]
jmp 0x43074d
mov eax, 0
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0
jne 0x4306d8
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0xe8]
mov qword [rbp + 0x50], rax
cmp qword [rbp + 0x50], 0
jne 0x430684
mov rax, qword [0x005865d0]
mov r9, qword [rax + 0x68]
mov r8, qword [0x0059e8d8]
mov rcx, qword [0x0059e8d0]
mov rax, qword [0x005865d0]
mov rbx, qword [rax + 0x60]
mov rax, qword [0x005865d0]
mov rdx, qword [rax + 0x48]
mov rax, qword [0x005867d0]
mov rax, qword [rax + 0x50]
mov r11, qword [rbp + 0x58]
lea r10, [rbp - 0x20]
mov qword [rsp + 0x40], r10
mov r10, qword [0x005867d0]
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rcx
mov r9, rbx
mov r8, r11
mov rcx, rax
call fcn.0049423a
test eax, eax
jne 0x4307f2
lea rcx, str._F_P:_failed_to_set_dynamic_section_sizes:__E_n
call fcn.00426ada
mov rax, qword [0x005865d0]
mov rax, qword [rax + 0x40]
test rax, rax
je 0x430843
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x430843
mov rax, qword [rbp - 0x20]
mov rdx, qword [0x005865d0]
mov rdx, qword [rdx + 0x40]
mov qword [rax + 0xb0], rdx
mov rax, qword [0x005865d0]
mov rax, qword [rax + 0x40]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov rdx, rax
mov rax, qword [rbp - 0x20]
add rdx, 1
mov qword [rax + 0x38], rdx
mov rax, qword [0x005866b0]
mov rax, qword [rax]
mov qword [rbp + 0x28], rax
jmp 0x4309c9
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax + 0x48]
and eax, 0x10
test al, al
jne 0x4309b9
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x20]
lea rdx, str..gnu.warning
mov rcx, rax
call fcn.00449a52
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x4309bc
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x38]
mov qword [rbp], rax
mov rax, qword [rbp]
add rax, 1
mov rcx, rax
call fcn.004fb406
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x20]
mov r8, qword [rbp - 8]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov rcx, rax
call fcn.0044a45e
test eax, eax
jne 0x4308f1
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x20]
mov rdx, rax
lea rcx, str._F_P:__pB:_cant_read_contents_of_section_.gnu.warning:__E_n
call fcn.00426ada
mov rdx, qword [rbp - 8]
mov rax, qword [rbp]
add rax, rdx
mov byte [rax], 0
mov rax, qword [0x005867d0]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rdx + 0x20]
mov rdx, qword [rbp - 8]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0
mov rcx, qword [0x005867d0]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x68]
test rax, rax
je 0x430996
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x68]
mov rdx, qword [rax + 0x40]
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x38]
cmp rdx, rax
jb 0x430996
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x68]
mov rcx, qword [rax + 0x40]
mov rax, qword [rbp + 8]
mov rdx, qword [rax + 0x38]
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x68]
sub rcx, rdx
mov rdx, rcx
mov qword [rax + 0x40], rdx
mov rax, qword [rbp + 8]
mov qword [rax + 0x38], 0
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x20]
or eax, 0x208000
mov edx, eax
mov rax, qword [rbp + 8]
mov dword [rax + 0x20], edx
jmp 0x4309bd
nop
jmp 0x4309bd
nop
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x30]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x430856
call fcn.00425049
mov rax, qword [0x005867d0]
mov rax, qword [rax + 0x50]
mov rdx, qword [0x005867d0]
mov rcx, rax
call fcn.00496761
test eax, eax
jne 0x430a03
lea rcx, str._F_P:_failed_to_set_dynamic_section_sizes:__E_n
call fcn.00426ada
cmp qword [rbp + 0x48], 0
je 0x430a30
mov rax, qword [rbp + 0x48]
movzx edx, byte [rbp + 0x47]
mov byte [rax + 0x18], dl
mov rax, qword [rbp + 0x48]
add rax, 0x20
lea rcx, [rax + 8]
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
nop
add rsp, 0xe8
pop rbx
pop rbp
ret