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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff288
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x26e0
call fcn.004e6b50
mov eax, dword [0x519bc0]
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 + 0xc], bl
je 0x4b3108
cmp word [0x5527fe], bx
je 0x4b315c
cmp dword [0x56ce34], ebx
je 0x4b315c
xor eax, eax
mov word [0x5527fe], ax
jmp 0x4b315c
push 1
call fcn.004b0420
mov dword [0x555948], 3
mov dword [0x53e3c8], ebx
mov dword [0x53e3cc], ebx
cmp byte [0x53d329], bl
jne 0x4b3229
push ebx
push 0x55bbfc
mov ecx, 0x549cb8
call fcn.00493e30
cmp byte [0x54acfa], bl
je 0x4b315c
cmp dword [0x55bc10], 1
jbe 0x4b315c
mov dword [0x555944], 4
cmp byte [0x53d329], bl
jne 0x4b3229
cmp word [0x55abfa], bx
jne 0x4b3229
mov byte [ebp + 8], bl
mov edi, 0x800
mov esi, 0x55abfa
call fcn.004afb90
push edi
push 0x501a20
lea ecx, [ebp - 0x10b4]
push ecx
push str.DefFolder
push 0x503b70
call fcn.0049c530
cmp word [ebp - 0x10b4], bx
jne 0x4b31c9
cmp byte [0x54acfa], bl
je 0x4b3206
lea edx, [ebp - 0x10b4]
push edx
call fcn.0048d550
cmp word [ebp - 0x10b4], bx
je 0x4b3206
push 0x800
lea eax, [ebp - 0x10b4]
push eax
call fcn.00452c60
push 0x800
push 0x55abfa
lea ecx, [ebp - 0x10b4]
push ecx
call fcn.00469530
push 0x800
lea edx, [ebp - 0x10b4]
push edx
push 0x55abfa
call fcn.004694b0
mov eax, dword [0x557ba8]
push eax
cmp word [0x5507f8], bx
setne cl
movzx edx, cl
push edx
push 0x800
push 0x55abfa
call fcn.004ace10
cmp dword [0x555944], ebx
jne 0x4b323b
mov dword [0x555944], 5
cmp byte [0x53d329], bl
je 0x4b33a1
mov esi, dword [0x54be0c]
cmp esi, ebx
je 0x4b3288
cmp esi, 1
je 0x4b3288
cmp dword [0x555914], 3
je 0x4b3736
push 0x30
push 0x65
call fcn.00463400
push eax
push 0x1fd
call fcn.00463400
push eax
mov eax, dword [0x53f484]
push eax
call fcn.004b53a0
jmp 0x4b3736
push 0x800
push 0x55abfa
mov ecx, 0x54be08
call fcn.0047b190
push 0x800
push 0x553810
mov ecx, 0x54be08
call fcn.0047b170
cmp word [0x553810], bx
je 0x4b32c8
push 0x800
push 0x553810
call fcn.00452c60
mov byte [0x5559a0], bl
lea ecx, [ebp - 0x16a4]
push ecx
mov ecx, 0x54be08
call fcn.0047b1c0
mov edx, dword [ebp - 0x1564]
mov dword [0x557ba8], 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 0x55abfa
call fcn.00447040
test al, al
je 0x4b3336
cmp dword [ebp - 0x16ec], 0x14
jne 0x4b3336
cmp dword [ebp - 0x16e8], ebx
je 0x4b3353
cmp dword [ebp - 0x1564], ebx
jne 0x4b334d
cmp byte [ebp - 0x1624], bl
mov byte [0x555987], 1
jne 0x4b3353
mov byte [0x555987], bl
cmp esi, ebx
jne 0x4b335f
cmp dword [ebp - 0x14dc], ebx
je 0x4b336c
movzx ecx, byte [ebp - 0x156a]
mov dword [0x555934], ecx
cmp dword [ebp - 0x1570], ebx
je 0x4b3398
xor eax, eax
jmp 0x4b3380
movzx ecx, word [eax + 0x502a28]
mov word [eax + 0x5507f8], cx
add eax, 2
cmp cx, bx
jne 0x4b3380
jmp 0x4b33a1
xor edx, edx
mov word [0x5507f8], dx
mov eax, dword [0x53f484]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and eax, dword [0x53f484]
push ebx
mov ecx, dword [ebp + 8]
push ecx
push eax
call fcn.004b2dc0
test al, al
je 0x4b3717
movzx edx, byte [0x56ce4f]
neg edx
sbb edx, edx
and edx, dword [0x56ce50]
mov dword [0x555928], edx
mov eax, dword [0x56ce3c]
cmp eax, 1
je 0x4b33f0
cmp eax, 2
jne 0x4b3445
mov eax, dword [0x56ce48]
push eax
mov ecx, dword [0x56ce44]
push ecx
mov edx, dword [0x56ce40]
push edx
push str._dd_dh_dm
lea eax, [ebp - 0xb4]
push eax
mov edx, 0x50
call fcn.004a63e0
add esp, 0x14
cmp dword [0x56ce3c], 1
jne 0x4b3434
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, 0x555aa8
jmp 0x4b3440
lea edx, [ebp - 0xb4]
push edx
mov ecx, 0x555ab0
call fcn.0046b090
mov eax, dword [0x56ce34]
cmp eax, ebx
je 0x4b3456
push eax
call fcn.004aab40
jmp 0x4b3478
cmp byte [0x53d329], bl
je 0x4b3478
cmp dword [ebp - 0x1570], ebx
je 0x4b3478
cmp word [0x5507f8], 0x2a
jne 0x4b3478
xor eax, eax
mov word [0x5507f8], ax
cmp dword [0x55bc10], ebx
jne 0x4b34a6
push 0x30
push 0x65
call fcn.00463400
push eax
push 0x14b
call fcn.00463400
push eax
mov ecx, dword [0x53f484]
push ecx
call fcn.004b53a0
jmp 0x4b3717
cmp word [0x5527fe], bx
je 0x4b351d
cmp dword [0x553800], ebx
jne 0x4b351d
push 0x5048cc
push 0x5527fe
call fcn.004452a0
mov esi, eax
cmp esi, ebx
je 0x4b351d
push esi
push 0x400
push 1
lea edx, [ebp - 0x14b4]
push edx
call fcn.004eb477
add esp, 0x10
mov dword [ebp - 0x26f0], 0x30c
cmp eax, ebx
jbe 0x4b3514
lea ecx, [ebp - 0x26f0]
push ecx
push eax
lea edx, [ebp - 0x14b4]
push edx
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
je 0x4b3514
mov dword [0x553800], 3
push esi
call fcn.004eae6b
add esp, 4
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x70]
call fcn.00469a70
mov byte [ebp - 4], 1
mov ecx, 0x55bbfc
call fcn.00469860
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea esp, [esp]
mov ecx, 0x55bbfc
call fcn.00469bc0
mov esi, eax
cmp esi, ebx
je 0x4b35df
push 0x800
lea eax, [ebp - 0x10b4]
push eax
push esi
mov ecx, 0x549cb8
call fcn.00490060
push 0x25
push esi
call fcn.004e94f5
add esp, 8
cmp eax, ebx
je 0x4b35cb
push 0x25
add eax, 2
push eax
call fcn.004e94f5
add esp, 8
test eax, eax
je 0x4b35cb
lea ecx, [ebp - 0x10b4]
push ecx
call fcn.00445470
test al, al
jne 0x4b35cb
push 0x800
lea edx, [ebp - 0x26a4]
push edx
push esi
call edi
dec eax
cmp eax, 0x7ff
ja 0x4b35cb
push 0x800
lea eax, [ebp - 0x26a4]
push eax
lea ecx, [ebp - 0x10b4]
push ecx
call fcn.004694b0
lea edx, [ebp - 0x10b4]
push edx
lea ecx, [ebp - 0x70]
call fcn.004698e0
jmp 0x4b3540
lea eax, [ebp - 0x70]
push eax
mov ecx, 0x55bbfc
call fcn.00483c90
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x70]
call fcn.0041e100
mov dword [ebp - 4], 0xffffffff
jmp 0x4b361a
cmp byte [0x559bb5], bl
jne 0x4b363b
push 0x800
push 0x55abfa
push 0x55abfa
mov ecx, 0x549cb8
call fcn.00490060
mov cl, byte [0x554910]
mov byte [0x53f4b4], cl
mov ecx, 0x53f488
call fcn.004a39e0
cmp byte [0x559bcd], bl
je 0x4b3660
call fcn.004b2660
jmp 0x4b3672
movzx edx, byte [0x559bb3]
push edx
mov ecx, 0x54be08
call fcn.0047d0d0
cmp dword [0x56ce34], ebx
je 0x4b3684
push 0x5527fe
call fcn.004450c0
cmp dword [0x53e344], 1
je 0x4b3717
cmp byte [0x53d329], bl
je 0x4b36a5
mov ecx, 0x549cb8
call fcn.00496040
jmp 0x4b3717
cmp byte [0x555986], bl
je 0x4b36b7
mov ecx, 0x549ca0
call fcn.004a8900
push 0x800
lea eax, [ebp - 0x10b4]
push eax
mov ecx, 0x549cb8
call fcn.00490030
lea eax, [ebp - 0x10b4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b36d6
sub eax, edx
sar eax, 1
push eax
push 0x55abfa
lea ecx, [ebp - 0x10b4]
push ecx
call fcn.0046cb30
test eax, eax
jne 0x4b3707
push 0x55abfa
call fcn.004534c0
jmp 0x4b370c
mov eax, 0x501a20
push eax
mov ecx, 0x549cb8
call fcn.00494c40
mov edx, dword [0x56ce34]
push edx
call fcn.004e6904
add esp, 4
mov byte [0x53f4b4], bl
mov ecx, 0x53f488
call fcn.004a39e0
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.004e6b3a
mov esp, ebp
pop ebp
ret 8