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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509108
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x26e0
call fcn.004ebbf0
mov eax, dword [0x528af4]
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
cmp byte [ebp + 0xc], 0
je 0x4ba479
cmp word [0x546e9e], 0
je 0x4ba4d8
cmp dword [0x58e834], 0
je 0x4ba4d8
xor eax, eax
mov word [0x546e9e], ax
jmp 0x4ba4d8
push 1
call fcn.004bf8d0
mov dword [0x549fe8], 3
mov dword [0x539a58], 0
mov dword [0x539a5c], 0
mov al, byte [0x53898c]
test al, al
jne 0x4ba5ba
push 0
push 0x55029c
mov ecx, 0x55d4d8
call fcn.0043f800
cmp byte [0x55e51a], 0
je 0x4ba4d8
cmp dword [0x5502b0], 1
jbe 0x4ba4d8
mov dword [0x549fe4], 4
mov al, byte [0x53898c]
test al, al
jne 0x4ba5ba
cmp word [0x54f29a], 0
jne 0x4ba5ba
mov byte [ebp + 8], al
push 0x800
push 0x54f29a
push dword [0x54c248]
call fcn.004bf590
push 0x800
push 0x50b8c4
lea eax, [ebp - 0x10b4]
push eax
push str.DefFolder
push str.Compression
call fcn.0049fec0
cmp word [ebp - 0x10b4], 0
jne 0x4ba554
cmp byte [0x55e51a], 0
je 0x4ba591
lea eax, [ebp - 0x10b4]
push eax
call fcn.0043aa80
cmp word [ebp - 0x10b4], 0
je 0x4ba591
push 0x800
lea eax, [ebp - 0x10b4]
push eax
call fcn.00477290
push 0x800
push 0x54f29a
lea eax, [ebp - 0x10b4]
push eax
call fcn.0048e6d0
push 0x800
lea eax, [ebp - 0x10b4]
push eax
push 0x54f29a
call fcn.0048e710
push dword [0x54c248]
cmp word [0x544e98], 0
setne al
movzx eax, al
push eax
push 0x800
push 0x54f29a
call fcn.004c2670
mov al, byte [0x53898c]
cmp dword [0x549fe4], 0
jne 0x4ba5cd
mov dword [0x549fe4], 5
test al, al
je 0x4ba734
mov esi, dword [0x55a854]
test esi, esi
je 0x4ba616
cmp esi, 1
je 0x4ba616
cmp dword [0x549fb4], 3
je 0x4baac0
push 0x30
push 0x65
call fcn.00488530
push eax
push 0x1fd
call fcn.00488530
push eax
push dword [0x538900]
call fcn.004c4910
jmp 0x4baac0
push 0x800
push 0x54f29a
mov ecx, 0x55a850
call fcn.00404e00
push 0x800
push 0x547eb0
mov ecx, 0x55a850
call fcn.004051a0
cmp word [0x547eb0], 0
je 0x4ba657
push 0x800
push 0x547eb0
call fcn.00477290
mov byte [0x54a040], 0
lea eax, [ebp - 0x16a4]
push eax
mov ecx, 0x55a850
call fcn.004051c0
mov eax, dword [ebp - 0x1564]
mov dword [0x54c248], eax
mov dword [ebp - 0x16dc], 0
mov dword [ebp - 0x16d8], 0
mov dword [ebp - 0x16d4], 0
mov dword [ebp - 0x16d0], 0
mov dword [ebp - 0x16cc], 0
mov dword [ebp - 0x16c8], 0
push 0
lea eax, [ebp - 0x26ec]
push eax
push 0x54f29a
call fcn.0046ac60
test al, al
je 0x4ba6df
cmp dword [ebp - 0x16ec], 0x14
jne 0x4ba6df
cmp dword [ebp - 0x16e8], 0
je 0x4ba6ff
cmp dword [ebp - 0x1564], 0
jne 0x4ba6f8
cmp byte [ebp - 0x1624], 0
mov byte [0x54a028], 1
jne 0x4ba6ff
mov byte [0x54a028], 0
test esi, esi
jne 0x4ba70b
cmp dword [ebp - 0x14dc], esi
je 0x4ba717
movzx eax, byte [ebp - 0x156a]
mov dword [0x549fd4], eax
cmp dword [ebp - 0x1570], 0
je 0x4ba72c
mov dword [0x544e98], 0x2a
jmp 0x4ba734
xor eax, eax
mov word [0x544e98], ax
push dword [0x538900]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and eax, dword [0x538900]
push 0
push dword [ebp + 8]
push eax
call fcn.004bd210
test al, al
je 0x4baaa1
movzx eax, byte [0x58e84f]
neg eax
sbb eax, eax
and eax, dword [0x58e850]
mov dword [0x549fc8], eax
mov eax, dword [0x58e83c]
cmp eax, 1
je 0x4ba782
cmp eax, 2
jne 0x4ba7c9
push dword [0x58e848]
push dword [0x58e844]
push dword [0x58e840]
push str._dd_dh_dm
push 0x50
lea eax, [ebp - 0xb4]
push eax
call fcn.004028e0
add esp, 0x18
lea eax, [ebp - 0xb4]
push eax
cmp dword [0x58e83c], 1
mov ecx, 0x54a148
je 0x4ba7c4
mov ecx, 0x54a150
call fcn.0048fc70
mov eax, dword [0x58e834]
test eax, eax
je 0x4ba7da
push eax
call fcn.004c2f30
jmp 0x4ba7fe
cmp byte [0x53898c], 0
je 0x4ba7fe
cmp dword [ebp - 0x1570], 0
je 0x4ba7fe
cmp word [0x544e98], 0x2a
jne 0x4ba7fe
xor eax, eax
mov word [0x544e98], ax
cmp dword [0x5502b0], 0
jne 0x4ba82c
push 0x30
push 0x65
call fcn.00488530
push eax
push 0x14b
call fcn.00488530
push eax
push dword [0x538900]
call fcn.004c4910
jmp 0x4baaa1
cmp word [0x546e9e], 0
je 0x4ba8a5
cmp dword [0x547ea0], 0
jne 0x4ba8a5
push 0x50db48
push 0x546e9e
call fcn.0046a5a0
mov esi, eax
test esi, esi
je 0x4ba8a5
push esi
push 0x400
push 1
lea eax, [ebp - 0x14b4]
push eax
call fcn.004f63b2
add esp, 0x10
mov dword [ebp - 0x26f0], 0x30c
test eax, eax
je 0x4ba89c
lea ecx, [ebp - 0x26f0]
push ecx
push eax
lea eax, [ebp - 0x14b4]
push eax
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
je 0x4ba89c
mov dword [0x547ea0], 3
push esi
call fcn.004f2a17
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0048e750
mov byte [ebp - 4], 1
mov ecx, 0x55029c
call fcn.0048ea30
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x4ba8d0
mov ecx, 0x55029c
call fcn.0048e850
mov esi, eax
test esi, esi
je 0x4ba96f
push 0x800
lea eax, [ebp - 0x10b4]
push eax
push esi
mov ecx, 0x55d4d8
call fcn.00440000
push 0x25
push esi
call fcn.004ecec5
add esp, 8
test eax, eax
je 0x4ba95b
push 0x25
add eax, 2
push eax
call fcn.004ecec5
add esp, 8
test eax, eax
je 0x4ba95b
lea eax, [ebp - 0x10b4]
push eax
call fcn.00469360
test al, al
jne 0x4ba95b
push 0x800
lea eax, [ebp - 0x26a4]
push eax
push esi
call edi
dec eax
cmp eax, 0x7ff
ja 0x4ba95b
push 0x800
lea eax, [ebp - 0x26a4]
push eax
lea eax, [ebp - 0x10b4]
push eax
call fcn.0048e710
lea eax, [ebp - 0x10b4]
push eax
lea ecx, [ebp - 0x70]
call fcn.0048e7f0
jmp 0x4ba8d0
lea eax, [ebp - 0x70]
push eax
mov ecx, 0x55029c
call fcn.0040d690
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00403fc0
mov dword [ebp - 4], 0xffffffff
cmp byte [0x54e255], 0
jne 0x4ba9b2
push 0x800
push 0x54f29a
push 0x54f29a
mov ecx, 0x55d4d8
call fcn.00440000
mov al, byte [0x548fb0]
mov byte [0x55d0d4], al
mov ecx, 0x55d0a8
call fcn.004a7860
cmp byte [0x54e26d], 0
je 0x4ba9e6
call fcn.004bb270
jmp 0x4ba9f8
movzx eax, byte [0x54e253]
push eax
mov ecx, 0x55a850
call fcn.00404090
cmp dword [0x58e834], 0
je 0x4baa0b
push 0x546e9e
call fcn.00468f10
cmp dword [0x538a04], 1
je 0x4baaa1
cmp byte [0x53898c], 0
je 0x4baa2d
mov ecx, 0x55d4d8
call fcn.004437b0
jmp 0x4baaa1
cmp byte [0x54a026], 0
je 0x4baa40
mov ecx, 0x543e78
call fcn.004aced0
push 0x800
lea eax, [ebp - 0x10b4]
push eax
mov ecx, 0x55d4d8
call fcn.0043f660
lea ecx, [ebp - 0x10b4]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4baa60
sub ecx, edx
sar ecx, 1
push ecx
push 0x54f29a
lea eax, [ebp - 0x10b4]
push eax
call fcn.00491b00
test eax, eax
jne 0x4baa91
push 0x54f29a
call fcn.00478eb0
jmp 0x4baa96
mov eax, 0x50b8c4
push eax
mov ecx, 0x55d4d8
call fcn.00442c60
push dword [0x58e834]
call fcn.004ebd28
add esp, 4
mov byte [0x55d0d4], 0
mov ecx, 0x55d0a8
call fcn.004a7860
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.004ebbd8
mov esp, ebp
pop ebp
ret 8