Function at 0x4b0150
Capabilities:
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb8e8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x26e0
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
cmp byte [ebp + 0x10], bl
je 0x4b01a8
cmp word [0x54d7ae], bx
je 0x4b0208
cmp dword [0x567dd4], ebx
je 0x4b0208
xor eax, eax
mov word [0x54d7ae], ax
jmp 0x4b0208
push 1
call fcn.004ad5d0
mov dword [0x5508f4], 3
mov al, byte [ebp + 0xc]
cmp al, bl
je 0x4b01c5
mov byte [0x55092e], al
mov dword [0x5393a8], ebx
mov dword [0x5393ac], ebx
cmp byte [0x538309], bl
jne 0x4b02d5
push ebx
push 0x556ba4
mov ecx, 0x544c98
call fcn.00491520
cmp byte [0x545cb2], bl
je 0x4b0208
cmp dword [0x556bb8], 1
jbe 0x4b0208
mov dword [0x5508f0], 4
cmp byte [0x538309], bl
jne 0x4b02d5
cmp word [0x555ba2], bx
jne 0x4b02d5
mov byte [ebp + 8], bl
mov edi, 0x800
mov esi, 0x555ba2
call fcn.004acd50
push edi
push 0x4fdab8
lea ecx, [ebp - 0x10b4]
push ecx
push str.DefFolder
push str.Compression
call fcn.00499a60
cmp word [ebp - 0x10b4], bx
jne 0x4b0275
cmp byte [0x545cb2], bl
je 0x4b02b2
lea edx, [ebp - 0x10b4]
push edx
call fcn.0048ae40
cmp word [ebp - 0x10b4], bx
je 0x4b02b2
push 0x800
lea eax, [ebp - 0x10b4]
push eax
call fcn.00451500
push 0x800
push 0x555ba2
lea ecx, [ebp - 0x10b4]
push ecx
call fcn.004675f0
push 0x800
lea edx, [ebp - 0x10b4]
push edx
push 0x555ba2
call fcn.00467570
mov eax, dword [0x552b50]
push eax
cmp word [0x54b7a8], bx
setne cl
movzx edx, cl
push edx
push 0x800
push 0x555ba2
call fcn.004aa080
cmp dword [0x5508f0], ebx
jne 0x4b02e7
mov dword [0x5508f0], 5
cmp byte [0x538309], bl
je 0x4b0451
mov esi, dword [0x546dc4]
cmp esi, ebx
je 0x4b0335
cmp esi, 1
je 0x4b0335
cmp dword [0x5508c0], 3
je 0x4b07cf
push 0x30
push 0x65
call fcn.00461b20
push eax
push 0x1fd
call fcn.00461b20
push eax
mov eax, dword [0x53a464]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4b07cf
push 0x800
push 0x555ba2
mov ecx, 0x546dc0
call fcn.004790c0
push 0x800
push 0x54e7bc
mov ecx, 0x546dc0
call fcn.004790a0
cmp word [0x54e7bc], bx
je 0x4b0375
push 0x800
push 0x54e7bc
call fcn.00451500
mov byte [0x550948], bl
lea ecx, [ebp - 0x16a4]
push ecx
mov ecx, 0x546dc0
call fcn.004790f0
mov edx, dword [ebp - 0x1564]
mov dword [0x552b50], edx
mov dword [ebp - 0x16dc], ebx
mov dword [ebp - 0x16d8], ebx
mov dword [ebp - 0x16d4], ebx
mov dword [ebp - 0x16d0], ebx
mov dword [ebp - 0x16cc], ebx
mov dword [ebp - 0x16c8], ebx
push ebx
lea eax, [ebp - 0x26ec]
push eax
push 0x555ba2
call fcn.004458a0
test al, al
je 0x4b03e3
cmp dword [ebp - 0x16ec], 0x14
jne 0x4b03e3
cmp dword [ebp - 0x16e8], ebx
je 0x4b0400
cmp dword [ebp - 0x1564], ebx
jne 0x4b03fa
cmp byte [ebp - 0x1624], bl
mov byte [0x55092f], 1
jne 0x4b0400
mov byte [0x55092f], bl
cmp esi, ebx
jne 0x4b040c
cmp dword [ebp - 0x14dc], ebx
je 0x4b0419
movzx ecx, byte [ebp - 0x156a]
mov dword [0x5508e0], ecx
cmp dword [ebp - 0x1570], ebx
je 0x4b0448
xor eax, eax
jmp 0x4b0430
movzx ecx, word [eax + 0x4fe964]
mov word [eax + 0x54b7a8], cx
add eax, 2
cmp cx, bx
jne 0x4b0430
jmp 0x4b0451
xor edx, edx
mov word [0x54b7a8], dx
mov eax, dword [0x53a464]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and eax, dword [0x53a464]
push ebx
mov ecx, dword [ebp + 8]
push ecx
push eax
call fcn.004afe50
test al, al
je 0x4b07b1
mov eax, dword [0x567ddc]
cmp eax, 1
je 0x4b0489
cmp eax, 2
jne 0x4b04de
mov edx, dword [0x567de8]
push edx
mov eax, dword [0x567de4]
push eax
mov ecx, dword [0x567de0]
push ecx
push str._dd_dh_dm
lea edx, [ebp - 0xb4]
push edx
mov edx, 0x50
call fcn.00458640
add esp, 0x14
cmp dword [0x567ddc], 1
jne 0x4b04cd
lea eax, [ebp - 0xb4]
push eax
mov ecx, 0x550a50
jmp 0x4b04d9
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, 0x550a58
call fcn.00468ed0
mov eax, dword [0x567dd4]
cmp eax, ebx
je 0x4b04ef
push eax
call fcn.004a7dc0
jmp 0x4b0512
cmp byte [0x538309], bl
je 0x4b0512
cmp dword [ebp - 0x1570], ebx
je 0x4b0512
cmp word [0x54b7a8], 0x2a
jne 0x4b0512
xor edx, edx
mov word [0x54b7a8], dx
cmp dword [0x556bb8], ebx
jne 0x4b0540
push 0x30
push 0x65
call fcn.00461b20
push eax
push 0x14b
call fcn.00461b20
push eax
mov eax, dword [0x53a464]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4b07b1
cmp word [0x54d7ae], bx
je 0x4b05b7
cmp dword [0x54e7b0], ebx
jne 0x4b05b7
push 0x4fdd08
push 0x54d7ae
call fcn.00443af0
mov esi, eax
cmp esi, ebx
je 0x4b05b7
push esi
push 0x400
push 1
lea ecx, [ebp - 0x14b4]
push ecx
call fcn.004e4fb1
add esp, 0x10
mov dword [ebp - 0x26f0], 0x30c
cmp eax, ebx
jbe 0x4b05ae
lea edx, [ebp - 0x26f0]
push edx
push eax
lea eax, [ebp - 0x14b4]
push eax
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
je 0x4b05ae
mov dword [0x54e7b0], 3
push esi
call fcn.004e4b91
add esp, 4
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x70]
call fcn.00467ad0
mov byte [ebp - 4], 1
mov ecx, 0x556ba4
call fcn.004678c0
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, 0x556ba4
call fcn.00467c20
mov esi, eax
cmp esi, ebx
je 0x4b0675
push 0x800
lea ecx, [ebp - 0x10b4]
push ecx
push esi
mov ecx, 0x544c98
call fcn.0048d930
push 0x25
push esi
call fcn.004e66b5
add esp, 8
cmp eax, ebx
je 0x4b0661
push 0x25
add eax, 2
push eax
call fcn.004e66b5
add esp, 8
test eax, eax
je 0x4b0661
lea edx, [ebp - 0x10b4]
push edx
call fcn.00443cc0
test al, al
jne 0x4b0661
push 0x800
lea eax, [ebp - 0x26a4]
push eax
push esi
call edi
dec eax
cmp eax, 0x7ff
ja 0x4b0661
push 0x800
lea ecx, [ebp - 0x26a4]
push ecx
lea edx, [ebp - 0x10b4]
push edx
call fcn.00467570
lea eax, [ebp - 0x10b4]
push eax
lea ecx, [ebp - 0x70]
call fcn.00467940
jmp 0x4b05d6
lea ecx, [ebp - 0x70]
push ecx
mov ecx, 0x556ba4
call fcn.00481a70
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x70]
call fcn.00429e50
mov dword [ebp - 4], 0xffffffff
jmp 0x4b06b0
cmp byte [0x554b5d], bl
jne 0x4b06d1
push 0x800
push 0x555ba2
push 0x555ba2
mov ecx, 0x544c98
call fcn.0048d930
mov dl, byte [0x54f8bc]
mov byte [0x53a494], dl
mov ecx, 0x53a468
call fcn.004a0d30
cmp byte [0x554b75], bl
je 0x4b06f6
call fcn.004af750
jmp 0x4b0708
movzx eax, byte [0x554b5b]
push eax
mov ecx, 0x546dc0
call fcn.0047afe0
cmp dword [0x567dd4], ebx
je 0x4b071a
push 0x54d7ae
call fcn.00443910
cmp dword [0x539324], 1
je 0x4b07b1
cmp byte [0x538309], bl
je 0x4b073b
mov ecx, 0x544c98
call fcn.00493570
jmp 0x4b07b1
cmp byte [0x55092e], bl
je 0x4b074d
mov ecx, 0x544c78
call fcn.004a5c00
push 0x800
lea ecx, [ebp - 0x10b4]
push ecx
mov ecx, 0x544c98
call fcn.0048d900
lea eax, [ebp - 0x10b4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b0770
sub eax, edx
sar eax, 1
push eax
push 0x555ba2
lea edx, [ebp - 0x10b4]
push edx
call fcn.0046a970
test eax, eax
jne 0x4b07a1
push 0x555ba2
call fcn.00451a10
jmp 0x4b07a6
mov eax, 0x4fdab8
push eax
mov ecx, 0x544c98
call fcn.00492300
mov eax, dword [0x567dd4]
push eax
call fcn.004e44b4
add esp, 4
mov byte [0x53a494], bl
mov ecx, 0x53a468
call fcn.004a0d30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e34f4
mov esp, ebp
pop ebp
ret 0xc