Function at 0x4146b0
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dc88
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5eb6e0]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x274], 0
mov dword [ebp - 4], 2
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x414712
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x270], ebx
push 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push ecx
call edi
mov esi, eax
test esi, esi
jle 0x414797
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x414761
push esi
lea ecx, [ebp - 0x270]
call fcn.00403620
mov ebx, dword [ebp - 0x270]
mov edx, dword [ebp + 0x10]
push esi
push ebx
push edx
call edi
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.00551122
add esp, 8
test eax, eax
jl 0x4147b1
cmp eax, dword [ebx - 8]
jg 0x4147b1
xor ecx, ecx
mov dword [ebx - 0xc], eax
lea edx, [ebp - 0x270]
mov word [ebx + eax*2], cx
push edx
lea ecx, [ebp + 0x10]
call fcn.004037d0
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4147bb
push 0x80004005
call fcn.004038e0
push 0x80070057
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x26c]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 0x274], 1
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4147f3
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x268], eax
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.004037d0
lea esi, [ebp - 0x268]
call fcn.00414b80
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00405900
mov eax, dword [ebp - 0x268]
lea edx, [ebp - 0x264]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41491e
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x414860
mov ecx, 0x5b4890
lea eax, [ebp - 0x238]
jmp 0x414870
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x414896
test dx, dx
je 0x414892
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x414896
add eax, 4
add ecx, 4
test dx, dx
jne 0x414870
xor eax, eax
jmp 0x41489b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4148df
mov ecx, 0x5b258c
lea eax, [ebp - 0x238]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4148d6
test dx, dx
je 0x4148d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4148d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4148b0
xor eax, eax
jmp 0x4148db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4148f3
lea ecx, [ebp - 0x264]
push ecx
push edi
call esi
test eax, eax
jne 0x414860
jmp 0x414917
mov esi, dword [ebp - 0x26c]
lea edx, [ebp + 0x10]
push edx
mov ecx, esi
call fcn.004037d0
call fcn.00414b80
lea eax, [ebp - 0x238]
push eax
mov ecx, esi
call fcn.00405a10
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414944
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414964
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414987
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4149aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x26c]
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.0055064f
mov esp, ebp
pop ebp
ret