Function at 0x46b85c
Capabilities:
Enumerate files on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x494
mov edx, dword [ebp + 8]
xor eax, eax
push ebx
mov word [esp + 8], ax
xor bl, bl
mov word [esp + 0x18], ax
movzx eax, word [edx]
mov byte [esp + 0x28], bl
push esi
push edi
cmp eax, 8
jne 0x46b89c
mov edi, dword [edx + 8]
mov dword [esp + 0xc], edi
mov dword [esp + 0x31], 0
jmp 0x46ba97
mov ecx, 0x4008
cmp ax, cx
jne 0x46b8bc
mov eax, dword [edx + 8]
mov edi, dword [eax]
mov dword [esp + 0xc], edi
mov dword [esp + 0x31], 0
jmp 0x46ba97
xor edi, edi
mov dword [esp + 0xc], edi
cmp eax, 0xa
jne 0x46b985
cmp dword [edx + 8], 0x80020004
jne 0x46b985
mov bl, 1
mov dword [esp + 0x31], 0x80020005
mov byte [esp + 0x30], bl
xor esi, esi
test bl, bl
jne 0x46bb57
cmp dword [ebp + 0xc], 8
jne 0x46bb57
mov eax, dword [0x568f98]
cmp eax, 0xffffffff
je 0x46b919
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0xc]
mov dword [0x568f98], 0xffffffff
push 0x208
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.0055d95a
add esp, 0xc
lea eax, [esp + 0x298]
push 0x208
push 0
push eax
call fcn.0055d95a
add esp, 0xc
test esi, esi
jne 0x46baae
push esi
push esi
push esi
push esi
push esi
push 0x104
lea eax, [esp + 0x2b0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x46bbbc
lea eax, [esp + 0x298]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x46bd42
cmp eax, 9
je 0x46b99a
mov esi, 0x4009
mov ecx, eax
cmp ax, si
jne 0x46ba31
mov ecx, dword [edx + 8]
test eax, 0x4000
je 0x46b9a6
mov ecx, dword [ecx]
test ecx, ecx
je 0x46bd39
push 0
push 0
lea edx, [esp + 0x18]
xor eax, eax
push edx
lea edx, [esp + 0x44]
mov dword [esp + 0x44], eax
push edx
push 3
push 0
push 0x5c0a38
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
mov esi, eax
mov dword [esp + 0x31], esi
test esi, esi
js 0x46ba83
movzx ecx, word [esp + 0x10]
lea edx, [esp + 0x10]
mov esi, 0x4008
mov eax, ecx
cmp cx, si
jne 0x46ba14
mov eax, dword [esp + 0x18]
xor esi, esi
mov edi, dword [eax]
mov dword [esp + 0xc], edi
mov dword [esp + 0x31], esi
jmp 0x46ba87
cmp eax, 8
jne 0x46ba29
mov edi, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x31], esi
jmp 0x46ba87
mov bl, byte [esp + 0x30]
mov edi, dword [esp + 0xc]
cmp cx, 1
jne 0x46ba42
mov esi, 0x800a005e
mov dword [esp + 0x31], esi
jmp 0x46ba8b
mov eax, 0x400c
cmp cx, ax
jne 0x46ba54
mov edx, dword [edx + 8]
cmp word [edx], ax
je 0x46ba4c
push 8
push 2
push 0x400
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
mov esi, eax
mov dword [esp + 0x31], esi
test esi, esi
js 0x46ba83
mov edi, dword [esp + 0x28]
xor esi, esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x31], esi
jmp 0x46ba87
mov edi, dword [esp + 0xc]
mov bl, byte [esp + 0x30]
test bl, bl
jne 0x46ba97
test esi, esi
js 0x46bd42
test edi, edi
je 0x46b8e6
mov eax, dword [edi - 4]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
jmp 0x46b8e8
mov dword [esp + 0x38], 0
test edi, edi
je 0x46bac4
mov eax, dword [edi - 4]
cdq
sub eax, edx
sar eax, 1
jmp 0x46bac6
xor eax, eax
lea ecx, [esp + 0x38]
mov edx, eax
push ecx
mov ecx, edi
call fcn.0053f2ac
mov edi, dword [esp + 0x38]
mov esi, eax
test esi, esi
js 0x46bc97
push 0x104
lea eax, [esp + 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x46bc7d
push 0
push 0
push 0
push 0
push 0
push 0x104
lea eax, [esp + 0x2b0]
push eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x46bc7d
lea eax, [esp + 0x298]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test edi, edi
je 0x46bd35
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
jmp 0x46bd42
push 0x250
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.0055d95a
mov eax, dword [0x568f98]
add esp, 0xc
test bl, bl
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x46bbc6
cmp eax, 0xffffffff
je 0x46bbbc
lea ecx, [esp + 0x48]
push ecx
push eax
call ebx
test eax, eax
jne 0x46bccc
push dword [0x568f98]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x5c4be4
mov dword [0x568f98], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [ecx], eax
jmp 0x46bd42
mov esi, 0x80004005
jmp 0x46bd42
cmp eax, 0xffffffff
je 0x46bbe0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0xc]
mov dword [0x568f98], 0xffffffff
test esi, esi
je 0x46bbfc
movzx eax, word [edi + esi*2 - 2]
cmp eax, 0x5c
je 0x46bbfc
cmp eax, 0x3a
je 0x46bbfc
cmp eax, 0x2f
je 0x46bbfc
test eax, eax
jne 0x46bc24
push 0x5c3ab4
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_VarBstrCmp]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [0x568f90], eax
mov dword [esp + 0x38], 0
test edi, edi
je 0x46bc42
mov eax, dword [edi - 4]
cdq
sub eax, edx
sar eax, 1
jmp 0x46bc44
xor eax, eax
lea ecx, [esp + 0x38]
mov edx, eax
push ecx
mov ecx, edi
call fcn.0053f2ac
mov edi, dword [esp + 0x38]
mov esi, eax
test esi, esi
js 0x46bc97
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [0x568f98], eax
cmp eax, 0xffffffff
jne 0x46bcb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc
jbe 0x46bc84
mov esi, 0x80004005
jmp 0x46bc97
mov eax, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x5c4be4
call eax
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [ecx], eax
test edi, edi
je 0x46bd42
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46bd42
test edi, edi
je 0x46bccc
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea esp, [esp]
mov ecx, dword [esp + 0x48]
cmp ecx, 0x80
je 0x46bd24
mov eax, dword [0x568f90]
not eax
and eax, ecx
test eax, 0x16
je 0x46bd24
lea eax, [esp + 0x48]
push eax
push dword [0x568f98]
call ebx
test eax, eax
jne 0x46bccc
push dword [0x568f98]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x5c4be4
mov dword [0x568f98], 0xffffffff
call eax
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [ecx], eax
jmp 0x46bd42
lea eax, [esp + 0x74]
push eax
mov eax, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
call eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor esi, esi
jmp 0x46bd42
mov esi, 0x800a005b
mov dword [esp + 0x31], esi
cmp word [esp + 0x10], 0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
je 0x46bd57
lea eax, [esp + 0x10]
push eax
call edi
cmp word [esp + 0x20], 0
je 0x46bd66
lea eax, [esp + 0x20]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc