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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f75f8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x25f8
call fcn.004df2e0
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 0x4ac888
cmp word [0x548786], bx
je 0x4ac8e8
cmp dword [0x561cfc], ebx
je 0x4ac8e8
xor eax, eax
mov word [0x548786], ax
jmp 0x4ac8e8
push 1
call fcn.004a9d00
mov dword [0x54b8cc], 3
mov al, byte [ebp + 0xc]
cmp al, bl
je 0x4ac8a5
mov byte [0x54b906], al
mov dword [0x534420], ebx
mov dword [0x534424], ebx
cmp byte [0x533389], bl
jne 0x4ac9b5
push ebx
push 0x551b7c
mov ecx, 0x53fd10
call fcn.0048f5b0
cmp byte [0x540d2a], bl
je 0x4ac8e8
cmp dword [0x551b90], 1
jbe 0x4ac8e8
mov dword [0x54b8c8], 4
cmp byte [0x533389], bl
jne 0x4ac9b5
cmp word [0x550b7a], bx
jne 0x4ac9b5
mov byte [ebp + 8], bl
mov edi, 0x800
mov esi, 0x550b7a
call fcn.004a9510
push edi
push 0x4f9a98
lea ecx, [ebp - 0x10b4]
push ecx
push str.DefFolder
push str.Compression
call fcn.004964f0
cmp word [ebp - 0x10b4], bx
jne 0x4ac955
cmp byte [0x540d2a], bl
je 0x4ac992
lea edx, [ebp - 0x10b4]
push edx
call fcn.004890d0
cmp word [ebp - 0x10b4], bx
je 0x4ac992
push 0x800
lea eax, [ebp - 0x10b4]
push eax
call fcn.00450a60
push 0x800
push 0x550b7a
lea ecx, [ebp - 0x10b4]
push ecx
call fcn.004669b0
push 0x800
lea edx, [ebp - 0x10b4]
push edx
push 0x550b7a
call fcn.00466930
mov eax, dword [0x54db28]
push eax
cmp word [0x546780], bx
setne cl
movzx edx, cl
push edx
push 0x800
push 0x550b7a
call fcn.004a6840
cmp dword [0x54b8c8], ebx
jne 0x4ac9c7
mov dword [0x54b8c8], 5
cmp byte [0x533389], bl
je 0x4acade
mov esi, dword [0x541e3c]
cmp esi, ebx
je 0x4aca15
cmp esi, 1
je 0x4aca15
cmp dword [0x54b898], 3
je 0x4ace60
push 0x30
push 0x65
call fcn.004610c0
push eax
push 0x1fd
call fcn.004610c0
push eax
mov eax, dword [0x5354dc]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4ace60
push 0x800
push 0x550b7a
mov ecx, 0x541e38
call fcn.00478250
push 0x800
push 0x549794
mov ecx, 0x541e38
call fcn.00478230
cmp word [0x549794], bx
je 0x4aca55
push 0x800
push 0x549794
call fcn.00450a60
mov byte [0x54b920], bl
lea ecx, [ebp - 0x2604]
push ecx
mov ecx, 0x541e38
call fcn.00478280
mov eax, dword [ebp - 0x2564]
mov dword [0x54db28], eax
cmp eax, ebx
jne 0x4aca8a
cmp byte [ebp - 0x2584], bl
mov byte [0x54b907], 1
jne 0x4aca90
mov byte [0x54b907], bl
cmp esi, ebx
jne 0x4aca9c
cmp dword [ebp - 0x24dc], ebx
je 0x4acaa9
movzx edx, byte [ebp - 0x256a]
mov dword [0x54b8b8], edx
xor eax, eax
cmp dword [ebp - 0x2570], ebx
je 0x4acad8
jmp 0x4acac0
movzx ecx, word [eax + 0x4fa890]
mov word [eax + 0x546780], cx
add eax, 2
cmp cx, bx
jne 0x4acac0
jmp 0x4acade
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.004ac530
test al, al
je 0x4ace41
mov eax, dword [0x561d04]
cmp eax, 1
je 0x4acb17
cmp eax, 2
jne 0x4acb6c
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.00493540
add esp, 0x14
cmp dword [0x561d04], 1
jne 0x4acb5b
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, 0x54ba28
jmp 0x4acb67
lea edx, [ebp - 0xb4]
push edx
mov ecx, 0x54ba30
call fcn.00468250
mov eax, dword [0x561cfc]
cmp eax, ebx
je 0x4acb7d
push eax
call fcn.004a4590
jmp 0x4acb9f
cmp byte [0x533389], bl
je 0x4acb9f
cmp dword [ebp - 0x2570], ebx
je 0x4acb9f
cmp word [0x546780], 0x2a
jne 0x4acb9f
xor eax, eax
mov word [0x546780], ax
cmp dword [0x551b90], ebx
jne 0x4acbce
push 0x30
push 0x65
call fcn.004610c0
push eax
push 0x14b
call fcn.004610c0
push eax
mov ecx, dword [0x5354dc]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4ace41
cmp word [0x548786], bx
je 0x4acc45
cmp dword [0x549788], ebx
jne 0x4acc45
push 0x4f9ce8
push 0x548786
call fcn.00443120
mov esi, eax
cmp esi, ebx
je 0x4acc45
push esi
push 0x400
push 1
lea edx, [ebp - 0x14b4]
push edx
call fcn.004e0c61
add esp, 0x10
mov dword [ebp - 0x2608], 0x30c
cmp eax, ebx
jbe 0x4acc3c
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 0x4acc3c
mov dword [0x549788], 3
push esi
call fcn.004e0841
add esp, 4
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x70]
call fcn.00466ea0
mov byte [ebp - 4], 1
mov ecx, 0x551b7c
call fcn.00466c90
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, 0x551b7c
call fcn.00466ff0
mov esi, eax
cmp esi, ebx
je 0x4acd03
push 0x800
lea eax, [ebp - 0x10b4]
push eax
push esi
mov ecx, 0x53fd10
call fcn.0048bb10
push 0x25
push esi
call fcn.004e2365
add esp, 8
cmp eax, ebx
je 0x4accef
push 0x25
add eax, 2
push eax
call fcn.004e2365
add esp, 8
test eax, eax
je 0x4accef
lea ecx, [ebp - 0x10b4]
push ecx
call fcn.004432f0
test al, al
jne 0x4accef
push 0x800
lea edx, [ebp - 0x24b4]
push edx
push esi
call edi
dec eax
cmp eax, 0x7ff
ja 0x4accef
push 0x800
lea eax, [ebp - 0x24b4]
push eax
lea ecx, [ebp - 0x10b4]
push ecx
call fcn.00466930
lea edx, [ebp - 0x10b4]
push edx
lea ecx, [ebp - 0x70]
call fcn.00466d10
jmp 0x4acc64
lea eax, [ebp - 0x70]
push eax
mov ecx, 0x551b7c
call fcn.00480870
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x70]
call fcn.0041cb40
mov dword [ebp - 4], 0xffffffff
jmp 0x4acd3e
cmp byte [0x54fb35], bl
jne 0x4acd5f
push 0x800
push 0x550b7a
push 0x550b7a
mov ecx, 0x53fd10
call fcn.0048bb10
mov cl, byte [0x54a894]
mov byte [0x53550c], cl
mov ecx, 0x5354e0
call fcn.0049d5c0
cmp byte [0x54fb4c], bl
je 0x4acd84
call fcn.004abe70
jmp 0x4acd96
movzx edx, byte [0x54fb33]
push edx
mov ecx, 0x541e38
call fcn.00479fe0
cmp dword [0x561cfc], ebx
je 0x4acda8
push 0x548786
call fcn.00442f40
cmp dword [0x5343a4], 1
je 0x4ace41
cmp byte [0x533389], bl
je 0x4acdc9
mov ecx, 0x53fd10
call fcn.00491600
jmp 0x4ace41
cmp byte [0x54b906], bl
je 0x4acddb
mov ecx, 0x53fcf0
call fcn.004a2480
push 0x800
lea eax, [ebp - 0x10b4]
push eax
mov ecx, 0x53fd10
call fcn.0048bae0
lea eax, [ebp - 0x10b4]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4ace00
sub eax, edx
sar eax, 1
push eax
push 0x550b7a
lea ecx, [ebp - 0x10b4]
push ecx
call fcn.00469c50
test eax, eax
jne 0x4ace31
push 0x550b7a
call fcn.00450f20
jmp 0x4ace36
mov eax, 0x4f9a98
push eax
mov ecx, 0x53fd10
call fcn.004903d0
mov edx, dword [0x561cfc]
push edx
call fcn.004e0284
add esp, 4
mov byte [0x53550c], bl
mov ecx, 0x5354e0
call fcn.0049d5c0
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.004df2c4
mov esp, ebp
pop ebp
ret 0xc