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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7b28
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x25f8
call fcn.004df840
mov eax, dword [0x50fb70]
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 0x4acc48
cmp word [0x548786], bx
je 0x4acca8
cmp dword [0x561cfc], ebx
je 0x4acca8
xor eax, eax
mov word [0x548786], ax
jmp 0x4acca8
push 1
call fcn.004aa0d0
mov dword [0x54b8cc], 3
mov al, byte [ebp + 0xc]
cmp al, bl
je 0x4acc65
mov byte [0x54b906], al
mov dword [0x534420], ebx
mov dword [0x534424], ebx
cmp byte [0x533389], bl
jne 0x4acd75
push ebx
push 0x551b7c
mov ecx, 0x53fd10
call fcn.0048f960
cmp byte [0x540d2a], bl
je 0x4acca8
cmp dword [0x551b90], 1
jbe 0x4acca8
mov dword [0x54b8c8], 4
cmp byte [0x533389], bl
jne 0x4acd75
cmp word [0x550b7a], bx
jne 0x4acd75
mov byte [ebp + 8], bl
mov edi, 0x800
mov esi, 0x550b7a
call fcn.004a98e0
push edi
push 0x4f9a98
lea ecx, [ebp - 0x10b4]
push ecx
push str.DefFolder
push str.Compression
call fcn.00496860
cmp word [ebp - 0x10b4], bx
jne 0x4acd15
cmp byte [0x540d2a], bl
je 0x4acd52
lea edx, [ebp - 0x10b4]
push edx
call fcn.00489460
cmp word [ebp - 0x10b4], bx
je 0x4acd52
push 0x800
lea eax, [ebp - 0x10b4]
push eax
call fcn.00450c80
push 0x800
push 0x550b7a
lea ecx, [ebp - 0x10b4]
push ecx
call fcn.00466ba0
push 0x800
lea edx, [ebp - 0x10b4]
push edx
push 0x550b7a
call fcn.00466b20
mov eax, dword [0x54db28]
push eax
cmp word [0x546780], bx
setne cl
movzx edx, cl
push edx
push 0x800
push 0x550b7a
call fcn.004a6c10
cmp dword [0x54b8c8], ebx
jne 0x4acd87
mov dword [0x54b8c8], 5
cmp byte [0x533389], bl
je 0x4ace9e
mov esi, dword [0x541e3c]
cmp esi, ebx
je 0x4acdd5
cmp esi, 1
je 0x4acdd5
cmp dword [0x54b898], 3
je 0x4ad220
push 0x30
push 0x65
call fcn.004612b0
push eax
push 0x1fd
call fcn.004612b0
push eax
mov eax, dword [0x5354dc]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4ad220
push 0x800
push 0x550b7a
mov ecx, 0x541e38
call fcn.004785d0
push 0x800
push 0x549794
mov ecx, 0x541e38
call fcn.004785b0
cmp word [0x549794], bx
je 0x4ace15
push 0x800
push 0x549794
call fcn.00450c80
mov byte [0x54b920], bl
lea ecx, [ebp - 0x2604]
push ecx
mov ecx, 0x541e38
call fcn.00478600
mov eax, dword [ebp - 0x2564]
mov dword [0x54db28], eax
cmp eax, ebx
jne 0x4ace4a
cmp byte [ebp - 0x2584], bl
mov byte [0x54b907], 1
jne 0x4ace50
mov byte [0x54b907], bl
cmp esi, ebx
jne 0x4ace5c
cmp dword [ebp - 0x24dc], ebx
je 0x4ace69
movzx edx, byte [ebp - 0x256a]
mov dword [0x54b8b8], edx
xor eax, eax
cmp dword [ebp - 0x2570], ebx
je 0x4ace98
jmp 0x4ace80
movzx ecx, word [eax + 0x4fa890]
mov word [eax + 0x546780], cx
add eax, 2
cmp cx, bx
jne 0x4ace80
jmp 0x4ace9e
mov word [0x546780], ax
mov ecx, dword [0x5354dc]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and eax, dword [0x5354dc]
push ebx
mov edx, dword [ebp + 8]
push edx
push eax
call fcn.004ac8f0
test al, al
je 0x4ad201
mov eax, dword [0x561d04]
cmp eax, 1
je 0x4aced7
cmp eax, 2
jne 0x4acf2c
mov eax, dword [0x561d10]
push eax
mov ecx, dword [0x561d0c]
push ecx
mov edx, dword [0x561d08]
push edx
push str._dd_dh_dm
lea eax, [ebp - 0xb4]
push eax
mov edx, 0x50
call fcn.00460180
add esp, 0x14
cmp dword [0x561d04], 1
jne 0x4acf1b
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, 0x54ba28
jmp 0x4acf27
lea edx, [ebp - 0xb4]
push edx
mov ecx, 0x54ba30
call fcn.00468530
mov eax, dword [0x561cfc]
cmp eax, ebx
je 0x4acf3d
push eax
call fcn.004a4950
jmp 0x4acf5f
cmp byte [0x533389], bl
je 0x4acf5f
cmp dword [ebp - 0x2570], ebx
je 0x4acf5f
cmp word [0x546780], 0x2a
jne 0x4acf5f
xor eax, eax
mov word [0x546780], ax
cmp dword [0x551b90], ebx
jne 0x4acf8e
push 0x30
push 0x65
call fcn.004612b0
push eax
push 0x14b
call fcn.004612b0
push eax
mov ecx, dword [0x5354dc]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4ad201
cmp word [0x548786], bx
je 0x4ad005
cmp dword [0x549788], ebx
jne 0x4ad005
push 0x4f9ce8
push 0x548786
call fcn.00443340
mov esi, eax
cmp esi, ebx
je 0x4ad005
push esi
push 0x400
push 1
lea edx, [ebp - 0x14b4]
push edx
call fcn.004e11c1
add esp, 0x10
mov dword [ebp - 0x2608], 0x30c
cmp eax, ebx
jbe 0x4acffc
lea ecx, [ebp - 0x2608]
push ecx
push eax
lea edx, [ebp - 0x14b4]
push edx
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
je 0x4acffc
mov dword [0x549788], 3
push esi
call fcn.004e0da1
add esp, 4
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x70]
call fcn.00467090
mov byte [ebp - 4], 1
mov ecx, 0x551b7c
call fcn.00466e80
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, 0x551b7c
call fcn.004671e0
mov esi, eax
cmp esi, ebx
je 0x4ad0c3
push 0x800
lea eax, [ebp - 0x10b4]
push eax
push esi
mov ecx, 0x53fd10
call fcn.0048bea0
push 0x25
push esi
call fcn.004e28c5
add esp, 8
cmp eax, ebx
je 0x4ad0af
push 0x25
add eax, 2
push eax
call fcn.004e28c5
add esp, 8
test eax, eax
je 0x4ad0af
lea ecx, [ebp - 0x10b4]
push ecx
call fcn.00443510
test al, al
jne 0x4ad0af
push 0x800
lea edx, [ebp - 0x24b4]
push edx
push esi
call edi
dec eax
cmp eax, 0x7ff
ja 0x4ad0af
push 0x800
lea eax, [ebp - 0x24b4]
push eax
lea ecx, [ebp - 0x10b4]
push ecx
call fcn.00466b20
lea edx, [ebp - 0x10b4]
push edx
lea ecx, [ebp - 0x70]
call fcn.00466f00
jmp 0x4ad024
lea eax, [ebp - 0x70]
push eax
mov ecx, 0x551b7c
call fcn.00480c00
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x70]
call fcn.0041cbb0
mov dword [ebp - 4], 0xffffffff
jmp 0x4ad0fe
cmp byte [0x54fb35], bl
jne 0x4ad11f
push 0x800
push 0x550b7a
push 0x550b7a
mov ecx, 0x53fd10
call fcn.0048bea0
mov cl, byte [0x54a894]
mov byte [0x53550c], cl
mov ecx, 0x5354e0
call fcn.0049d930
cmp byte [0x54fb4c], bl
je 0x4ad144
call fcn.004ac230
jmp 0x4ad156
movzx edx, byte [0x54fb33]
push edx
mov ecx, 0x541e38
call fcn.0047a360
cmp dword [0x561cfc], ebx
je 0x4ad168
push 0x548786
call fcn.00443160
cmp dword [0x5343a4], 1
je 0x4ad201
cmp byte [0x533389], bl
je 0x4ad189
mov ecx, 0x53fd10
call fcn.004919e0
jmp 0x4ad201
cmp byte [0x54b906], bl
je 0x4ad19b
mov ecx, 0x53fcf0
call fcn.004a27e0
push 0x800
lea eax, [ebp - 0x10b4]
push eax
mov ecx, 0x53fd10
call fcn.0048be70
lea eax, [ebp - 0x10b4]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4ad1c0
sub eax, edx
sar eax, 1
push eax
push 0x550b7a
lea ecx, [ebp - 0x10b4]
push ecx
call fcn.00469f30
test eax, eax
jne 0x4ad1f1
push 0x550b7a
call fcn.00451140
jmp 0x4ad1f6
mov eax, 0x4f9a98
push eax
mov ecx, 0x53fd10
call fcn.00490780
mov edx, dword [0x561cfc]
push edx
call fcn.004e07e4
add esp, 4
mov byte [0x53550c], bl
mov ecx, 0x5354e0
call fcn.0049d930
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.004df824
mov esp, ebp
pop ebp
ret 0xc