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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bac0
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x544070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ecx + 0x14], 8
jb 0x41ca0d
mov ecx, dword [ecx]
push 0x104
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x41ca4a
xor ecx, ecx
jmp 0x41ca62
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ca53
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403c50
push 0x4b2894
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.0041d820
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x41cab4
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00403050
xor eax, eax
mov dword [ebp - 0x21c], 7
push 0x250
push eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x4f8]
push eax
mov dword [ebp - 0x220], 0
call fcn.00475260
add esp, 0xc
lea ecx, [ebp - 0x4f8]
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41cd0a
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x41cb4a
xor ecx, ecx
jmp 0x41cb62
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cb53
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403c50
lea eax, [ebp - 0x4cc]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x290]
call fcn.0041d820
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x41cbb6
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00403050
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x27c], 8
lea edx, [ebp - 0x290]
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x238], 0
cmovae edx, dword [ebp - 0x290]
mov word [ebp - 0x248], ax
call fcn.0041c5b0
mov edi, eax
mov byte [ebp - 4], 7
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp word [ebp - 0x4cc], ax
jne 0x41cc22
xor ecx, ecx
jmp 0x41cc3f
lea ecx, [ebp - 0x4cc]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cc30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x4cc]
push eax
lea ecx, [ebp - 0x260]
call fcn.00403c50
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x41cd80
mov eax, dword [ecx]
lea edx, [ebp - 0x260]
push edi
push edx
call dword [eax + 8]
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x41cc8c
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00403050
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x250], 0
cmp eax, 8
jb 0x41ccc7
inc eax
lea ecx, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2a8]
call fcn.00403050
lea eax, [ebp - 0x4f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41ccdf
push esi
call ebx
or esi, 0xffffffff
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x41cd01
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00403050
cmp esi, 0xffffffff
jne 0x41cb20
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x41cd28
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00403050
xor eax, eax
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
mov dword [ebp - 4], 9
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x41cd64
mov edx, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bdad
mov esp, ebp
pop ebp
ret
call fcn.0044617c
int3