Function at 0x41f6f0
Capabilities:
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4a6110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 2
push 0x104
mov dword [ebp - 0x38], 0
call fcn.004688e4
mov ebx, eax
add esp, 8
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x41fb04
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 2
push 0x104
call fcn.004688e4
add esp, 8
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x41f75e
push ebx
call fcn.00467c86
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004689fb
mov esp, ebp
pop ebp
ret
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [0x4a7cf4]
test eax, eax
je 0x41f7af
cmp word [eax], 0
je 0x41f7af
push eax
call fcn.0041f5d0
push 0x5c
push dword [0x4a7cf4]
call fcn.00469477
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x38], edi
test edi, edi
je 0x41f7af
add edi, 2
push edi
mov dword [ebp - 0x38], edi
call fcn.0041f5d0
add esp, 4
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ebx, word [ebp - 0x14]
mov si, word [ebp - 0x12]
imul ebx, ebx, 0x16d
mov eax, 1
mov ecx, 0x4a38dc
movzx edx, si
cmp si, 0xc
jb 0x41f7e0
mov edx, 0xc
cmp eax, edx
jge 0x41f7ec
add ebx, dword [ecx]
inc eax
add ecx, 4
jmp 0x41f7d2
movzx eax, word [ebp - 0xe]
add ebx, eax
push 1
push 0x250
mov dword [ebp - 0x40], ebx
call fcn.004688e4
mov edi, eax
add esp, 8
mov dword [ebp - 0x30], edi
test edi, edi
jne 0x41f832
mov ebx, dword [ebp - 0x3c]
push ebx
call fcn.00467c86
push dword [ebp - 0x34]
call fcn.00467c86
add esp, 8
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004689fb
mov esp, ebp
pop ebp
ret
push 1
push 0x250
call fcn.004688e4
add esp, 8
mov esi, eax
mov dword [ebp - 0x2c], esi
push edi
test esi, esi
jne 0x41f875
call fcn.00467c86
mov ebx, dword [ebp - 0x3c]
push ebx
call fcn.00467c86
push dword [ebp - 0x34]
call fcn.00467c86
add esp, 0xc
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004689fb
mov esp, ebp
pop ebp
ret
push str.Mrt.tmp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x41fadb
lea esp, [esp]
test byte [edi], 0x10
je 0x41fac1
lea ebx, [edi + 0x2c]
mov ecx, 0x48166c
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f8c9
test dx, dx
je 0x41f8c5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f8c9
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f8a3
xor eax, eax
jmp 0x41f8ce
sbb eax, eax
or eax, 1
test eax, eax
je 0x41fabe
mov ecx, 0x481664
mov eax, ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f906
test dx, dx
je 0x41f902
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f906
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f8e0
xor eax, eax
jmp 0x41f90b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41fabe
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x41f92c
push eax
push ebx
call fcn.0046951d
add esp, 8
test eax, eax
je 0x41fabe
mov eax, dword [edi + 4]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x41fabe
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x41fabe
movzx esi, word [ebp - 0x24]
mov di, word [ebp - 0x22]
imul esi, esi, 0x16d
mov ecx, 1
mov edx, 0x4a38dc
lea esp, [esp]
movzx eax, di
cmp di, 0xc
jb 0x41f98e
mov eax, 0xc
cmp ecx, eax
jge 0x41f99a
add esi, dword [edx]
inc ecx
add edx, 4
jmp 0x41f980
movzx ecx, word [ebp - 0x1e]
mov eax, dword [ebp - 0x40]
add ecx, esi
add eax, 0xfffffffd
cmp ecx, eax
jge 0x41fab8
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x41fab8
mov eax, dword [str.Mid.mid]
mov esi, 0x4a38c0
test eax, eax
je 0x41f9e3
jmp 0x41f9d0
push eax
call fcn.0041f610
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 4
test eax, eax
jne 0x41f9d0
mov esi, dword [ebp - 0x2c]
push esi
push 0x481670
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41fab1
test byte [esi], 0x10
je 0x41fa97
add esi, 0x2c
mov ecx, 0x48166c
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41fa3b
test dx, dx
je 0x41fa37
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41fa3b
add eax, 4
add ecx, 4
test dx, dx
jne 0x41fa15
xor eax, eax
jmp 0x41fa40
sbb eax, eax
or eax, 1
test eax, eax
je 0x41fa7f
mov eax, 0x481664
lea esp, [esp]
mov cx, word [esi]
cmp cx, word [eax]
jne 0x41fa76
test cx, cx
je 0x41fa72
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x41fa76
add esi, 4
add eax, 4
test cx, cx
jne 0x41fa50
xor eax, eax
jmp 0x41fa7b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41fa94
mov esi, dword [ebp - 0x2c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41fa02
jmp 0x41fa99
mov esi, dword [ebp - 0x2c]
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x41fab1
push 0x481664
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x41fabb
call fcn.0041f580
jmp 0x41fabb
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x28]
jne 0x41f890
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x3c]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.00467c86
push edi
call fcn.00467c86
push ebx
call fcn.00467c86
push dword [ebp - 0x34]
call fcn.00467c86
add esp, 0x10
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004689fb
mov esp, ebp
pop ebp
ret