Function at 0x42b620
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x350
lea eax, [esp + 8]
push 0x104
mov dword [esp + 4], ecx
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0x104
lea eax, [esp + 8]
cmp byte [eax], 0
je 0x42b656
inc eax
dec ecx
jne 0x42b64b
jmp 0x42b686
test ecx, ecx
je 0x42b686
lea edx, [esp]
test edx, edx
je 0x42b66b
mov eax, 0x104
sub eax, ecx
jmp 0x42b66f
mov eax, dword [esp]
mov ecx, 0x104
push 0x46d924
sub ecx, eax
lea edx, [esp + eax + 0xc]
push ecx
push edx
call fcn.004054a0
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x46d91c
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, 0x104
lea edi, [esp + ecx + 0x18]
mov byte [edi], 0x5c
inc edi
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x42b6bd
mov byte [eax], cl
inc eax
dec esi
jne 0x42b6ae
jmp 0x42b6c1
test esi, esi
jne 0x42b6c2
dec eax
mov byte [eax], 0
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [esp + 0x364]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42b78c
test byte [esp + 0x220], 0x10
jne 0x42b76e
lea edx, [esp + 0x24c]
mov esi, 0x104
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x42b713
mov byte [eax], cl
inc eax
dec esi
jne 0x42b704
jmp 0x42b717
test esi, esi
jne 0x42b718
dec eax
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
mov byte [eax], 0
call fcn.0042c1b0
test eax, eax
je 0x42b754
mov ecx, dword [esp + 0x14]
inc ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
je 0x42b76e
mov eax, dword [esp + 0x368]
lea ecx, [esp + 0x18]
push eax
push 4
push ecx
push esi
call ebx
test eax, eax
je 0x42b785
jmp 0x42b76e
test ebx, ebx
je 0x42b76e
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x18]
push edx
push 0
push eax
push esi
call ebx
test eax, eax
je 0x42b785
lea ecx, [esp + 0x220]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42b6ea
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0x104
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x42b7b0
inc eax
dec ecx
jne 0x42b7a5
jmp 0x42b7e0
test ecx, ecx
je 0x42b7e0
lea eax, [esp + 0x10]
test eax, eax
je 0x42b7c5
mov eax, 0x104
sub eax, ecx
jmp 0x42b7c9
mov eax, dword [esp + 0x10]
mov ecx, 0x104
push 0x46d910
sub ecx, eax
lea edx, [esp + eax + 0x1c]
push ecx
push edx
call fcn.004054a0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x46d904
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x104
lea esi, [esp + ecx + 0x18]
mov byte [esi], 0x5c
inc esi
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x42b813
mov byte [eax], cl
inc eax
dec edi
jne 0x42b804
jmp 0x42b817
test edi, edi
jne 0x42b818
dec eax
mov byte [eax], 0
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42b8fc
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
test byte [esp + 0x220], 0x10
jne 0x42b8d7
lea edx, [esp + 0x24c]
push 0x46d8f8
push edx
call ebx
add esp, 8
test eax, eax
je 0x42b8d7
lea edx, [esp + 0x24c]
mov edi, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x42b882
mov byte [eax], cl
inc eax
dec edi
jne 0x42b873
jmp 0x42b886
test edi, edi
jne 0x42b887
dec eax
mov edi, dword [esp + 0x10]
push esi
mov ecx, edi
mov byte [eax], 0
call fcn.0042c4b0
test eax, eax
jne 0x42b8d7
lea eax, [esp + 0x18]
push 1
push eax
call fcn.00415910
add esp, 8
test eax, eax
jne 0x42b8d7
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x364]
inc edx
test eax, eax
mov dword [esp + 0x14], edx
je 0x42b8d7
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x18]
push ecx
push 4
push edx
push edi
call eax
test eax, eax
je 0x42b8ee
lea eax, [esp + 0x220]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42b83f
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x364]
lea ecx, [esp + 0x18]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0x104
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x42b920
inc eax
dec ecx
jne 0x42b915
jmp 0x42b950
test ecx, ecx
je 0x42b950
lea edx, [esp + 0x10]
test edx, edx
je 0x42b935
mov eax, 0x104
sub eax, ecx
jmp 0x42b939
mov eax, dword [esp + 0x10]
mov ecx, 0x104
push 0x46d910
sub ecx, eax
lea edx, [esp + eax + 0x1c]
push ecx
push edx
call fcn.004054a0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x46d8ec
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, 0x104
lea edi, [esp + ecx + 0x18]
mov byte [edi], 0x5c
inc edi
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x42b983
mov byte [eax], cl
inc eax
dec esi
jne 0x42b974
jmp 0x42b987
test esi, esi
jne 0x42b988
dec eax
mov byte [eax], 0
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42ba2e
test byte [esp + 0x220], 0x10
jne 0x42ba14
lea edx, [esp + 0x24c]
mov esi, 0x104
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x42b9d2
mov byte [eax], cl
inc eax
dec esi
jne 0x42b9c3
jmp 0x42b9d6
test esi, esi
jne 0x42b9d7
dec eax
lea edx, [esp + 0x18]
push 1
push edx
mov byte [eax], 0
call fcn.00415910
add esp, 8
test eax, eax
jne 0x42ba14
mov ecx, dword [esp + 0x14]
inc ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
je 0x42ba14
mov eax, dword [esp + 0x368]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push edx
call ebx
test eax, eax
je 0x42ba27
lea eax, [esp + 0x220]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42b9a9
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ebp, [esp + eax + 0x11c]
mov edi, 0x4440e0
mov byte [ebp], 0x5c
inc ebp
mov ecx, dword [edi]
mov esi, 0x104
mov eax, ebp
mov dl, byte [ecx]
test dl, dl
je 0x42ba6a
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x42ba5b
jmp 0x42ba6e
test esi, esi
jne 0x42ba6f
dec eax
lea edx, [esp + 0x11c]
mov byte [eax], 0
push edx
call fcn.00414f90
add esp, 4
test eax, eax
je 0x42bac8
lea eax, [esp + 0x11c]
push 0
push eax
call fcn.00415910
add esp, 8
test eax, eax
jne 0x42bac8
mov ecx, dword [esp + 0x14]
inc ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
je 0x42bae9
mov ecx, dword [esp + 0x368]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x120]
push 4
push edx
push eax
call ebx
test eax, eax
je 0x42baf8
jmp 0x42bae9
test ebx, ebx
je 0x42bae9
mov ecx, dword [esp + 0x368]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x120]
push 0
push edx
push eax
call ebx
test eax, eax
je 0x42baf8
add edi, 4
cmp edi, 0x44411c
jb 0x42ba52
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [esp + 0x11e], 0
mov ecx, 0x104
lea eax, [esp + 0x11c]
cmp byte [eax], 0
je 0x42bb2a
inc eax
dec ecx
jne 0x42bb1f
jmp 0x42bb5d
test ecx, ecx
je 0x42bb5d
lea edx, [esp + 0x10]
test edx, edx
je 0x42bb3f
mov eax, 0x104
sub eax, ecx
jmp 0x42bb43
mov eax, dword [esp + 0x10]
mov ecx, 0x104
push 0x46d8dc
sub ecx, eax
lea edx, [esp + eax + 0x120]
push ecx
push edx
call fcn.004054a0
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x444140
lea ebp, [esp + ecx + 0x11c]
mov byte [ebp], 0x5c
inc ebp
mov ecx, dword [edi]
mov esi, 0x104
mov eax, ebp
mov dl, byte [ecx]
test dl, dl
je 0x42bb97
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x42bb88
jmp 0x42bb9b
test esi, esi
jne 0x42bb9c
dec eax
mov byte [eax], 0
lea eax, [esp + 0x11c]
push eax
call fcn.00414f90
add esp, 4
test eax, eax
je 0x42bbf5
lea ecx, [esp + 0x11c]
push 0
push ecx
call fcn.00415910
add esp, 8
test eax, eax
jne 0x42bbf5
mov ecx, dword [esp + 0x14]
inc ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
je 0x42bc16
mov edx, dword [esp + 0x368]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x120]
push 2
push eax
push ecx
call ebx
test eax, eax
je 0x42bc25
jmp 0x42bc16
test ebx, ebx
je 0x42bc16
mov edx, dword [esp + 0x368]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x120]
push 0
push eax
push ecx
call ebx
test eax, eax
je 0x42bc25
add edi, 4
cmp edi, 0x444154
jb 0x42bb7f
lea edx, [esp + 0x11c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ebp, [esp + eax + 0x11c]
mov edi, 0x44411c
mov byte [ebp], 0x5c
inc ebp
mov ecx, dword [edi]
mov esi, 0x104
mov eax, ebp
mov dl, byte [ecx]
test dl, dl
je 0x42bc61
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x42bc52
jmp 0x42bc65
test esi, esi
jne 0x42bc66
dec eax
mov byte [eax], 0
lea eax, [esp + 0x11c]
push eax
call fcn.00414f90
add esp, 4
test eax, eax
je 0x42bcbf
lea ecx, [esp + 0x11c]
push 0
push ecx
call fcn.00415910
add esp, 8
test eax, eax
jne 0x42bcbf
mov ecx, dword [esp + 0x14]
inc ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
je 0x42bce0
mov edx, dword [esp + 0x368]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x120]
push 4
push eax
push ecx
call ebx
test eax, eax
je 0x42bcef
jmp 0x42bce0
test ebx, ebx
je 0x42bce0
mov edx, dword [esp + 0x368]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x120]
push 0
push eax
push ecx
call ebx
test eax, eax
je 0x42bcef
add edi, 4
cmp edi, 0x444140
jb 0x42bc49
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [esp + 0x1a], 0
mov ecx, 0x104
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x42bd18
inc eax
dec ecx
jne 0x42bd0d
jmp 0x42bd48
test ecx, ecx
je 0x42bd48
lea eax, [esp + 0x10]
test eax, eax
je 0x42bd2d
mov eax, 0x104
sub eax, ecx
jmp 0x42bd31
mov eax, dword [esp + 0x10]
mov ecx, 0x104
push 0x46d8b4
sub ecx, eax
lea edx, [esp + eax + 0x1c]
push ecx
push edx
call fcn.004054a0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x46d8ac
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, 0x104
lea edi, [esp + ecx + 0x18]
mov byte [edi], 0x5c
inc edi
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x42bd7b
mov byte [eax], cl
inc eax
dec esi
jne 0x42bd6c
jmp 0x42bd7f
test esi, esi
jne 0x42bd80
dec eax
mov byte [eax], 0
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42be45
test byte [esp + 0x220], 0x10
jne 0x42be27
lea edx, [esp + 0x24c]
mov esi, 0x104
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x42bdca
mov byte [eax], cl
inc eax
dec esi
jne 0x42bdbb
jmp 0x42bdce
test esi, esi
jne 0x42bdcf
dec eax
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push 1
push edx
mov ecx, esi
mov byte [eax], 0
call fcn.0042c050
test eax, eax
je 0x42be0d
mov ecx, dword [esp + 0x14]
inc ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
je 0x42be27
mov eax, dword [esp + 0x368]
lea ecx, [esp + 0x18]
push eax
push 4
push ecx
push esi
call ebx
test eax, eax
je 0x42be3e
jmp 0x42be27
test ebx, ebx
je 0x42be27
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x18]
push edx
push 0
push eax
push esi
call ebx
test eax, eax
je 0x42be3e
lea ecx, [esp + 0x220]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42bda1
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
lea edx, [esp + 0x1c]
push 0x23
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x42bf96
mov ecx, 0x104
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x42be72
inc eax
dec ecx
jne 0x42be67
jmp 0x42bea2
test ecx, ecx
je 0x42bea2
lea eax, [esp + 0x10]
test eax, eax
je 0x42be87
mov eax, 0x104
sub eax, ecx
jmp 0x42be8b
mov eax, dword [esp + 0x10]
mov ecx, 0x104
push 0x46d890
sub ecx, eax
lea edx, [esp + eax + 0x1c]
push ecx
push edx
call fcn.004054a0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x46d8ac
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, 0x104
lea edi, [esp + ecx + 0x18]
mov byte [edi], 0x5c
inc edi
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x42bed5
mov byte [eax], cl
inc eax
dec esi
jne 0x42bec6
jmp 0x42bed9
test esi, esi
jne 0x42beda
dec eax
mov byte [eax], 0
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42bf96
test byte [esp + 0x220], 0x10
jne 0x42bf78
lea edx, [esp + 0x24c]
mov esi, 0x104
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x42bf24
mov byte [eax], cl
inc eax
dec esi
jne 0x42bf15
jmp 0x42bf28
test esi, esi
jne 0x42bf29
dec eax
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push 1
push edx
mov ecx, esi
mov byte [eax], 0
call fcn.0042c050
test eax, eax
je 0x42bf5e
test ebx, ebx
je 0x42bf78
mov eax, dword [esp + 0x368]
lea ecx, [esp + 0x18]
push eax
push 4
push ecx
push esi
call ebx
test eax, eax
je 0x42bf8f
jmp 0x42bf78
test ebx, ebx
je 0x42bf78
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x18]
push edx
push 0
push eax
push esi
call ebx
test eax, eax
je 0x42bf8f
lea ecx, [esp + 0x220]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42befb
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x104
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x42bfba
inc eax
dec ecx
jne 0x42bfaf
jmp 0x42bfea
test ecx, ecx
je 0x42bfea
lea eax, [esp + 0x10]
test eax, eax
je 0x42bfcf
mov eax, 0x104
sub eax, ecx
jmp 0x42bfd3
mov eax, dword [esp + 0x10]
mov ecx, 0x104
push 0x46d880
sub ecx, eax
lea edx, [esp + eax + 0x1c]
push ecx
push edx
call fcn.004054a0
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
mov ecx, esi
call fcn.0042c050
test eax, eax
je 0x42c025
test ebx, ebx
je 0x42c03b
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x18]
push ecx
push 4
push edx
push esi
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x350
ret 8
test ebx, ebx
je 0x42c03b
mov eax, dword [esp + 0x368]
lea ecx, [esp + 0x18]
push eax
push 0
push ecx
push esi
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x350
ret 8