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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4acca0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0x104
mov dword [ebp - 0x34], 0
call fcn.00474099
mov ebx, eax
add esp, 8
mov dword [ebp - 0x3c], ebx
test ebx, ebx
je 0x427567
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 2
push 0x104
call fcn.00474099
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x4270b2
push ebx
call fcn.004740af
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004705b7
mov esp, ebp
pop ebp
ret
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [0x4b0078]
test ecx, ecx
je 0x427100
cmp word [ecx], 0
je 0x427100
call fcn.00426ba0
push 0x5c
push dword [0x4b0078]
call fcn.00471866
mov edi, eax
add esp, 8
mov dword [ebp - 0x34], edi
test edi, edi
je 0x427100
add edi, 2
mov ecx, edi
mov dword [ebp - 0x34], edi
call fcn.00426ba0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x14]
mov ecx, 0x49c590
mov si, word [ebp - 0x12]
imul ebx, eax, 0x16d
mov eax, 1
movzx edx, si
cmp si, 0xc
jb 0x427130
mov edx, 0xc
cmp eax, edx
jge 0x42713c
add ebx, dword [ecx]
inc eax
add ecx, 4
jmp 0x427122
movzx eax, word [ebp - 0xe]
add ebx, eax
push 1
push 0x250
mov dword [ebp - 0x44], ebx
call fcn.00474099
mov edi, eax
add esp, 8
mov dword [ebp - 0x30], edi
test edi, edi
jne 0x427182
mov ebx, dword [ebp - 0x38]
push ebx
call fcn.004740af
push dword [ebp - 0x3c]
call fcn.004740af
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004705b7
mov esp, ebp
pop ebp
ret
push 1
push 0x250
call fcn.00474099
add esp, 8
mov esi, eax
mov dword [ebp - 0x2c], esi
push edi
test esi, esi
jne 0x4271c5
call fcn.004740af
mov ebx, dword [ebp - 0x38]
push ebx
call fcn.004740af
push dword [ebp - 0x3c]
call fcn.004740af
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004705b7
mov esp, ebp
pop ebp
ret
push str.Mrt.tmp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, 0xffffffff
je 0x427540
nop
test byte [edi], 0x10
je 0x427529
lea ebx, [edi + 0x2c]
mov ecx, 0x49d400
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x427219
test dx, dx
je 0x427215
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x427219
add eax, 4
add ecx, 4
test dx, dx
jne 0x4271f3
xor eax, eax
jmp 0x42721e
sbb eax, eax
or eax, 1
test eax, eax
je 0x427526
mov ecx, 0x49d3f8
mov eax, ebx
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x427256
test dx, dx
je 0x427252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x427256
add eax, 4
add ecx, 4
test dx, dx
jne 0x427230
xor eax, eax
jmp 0x42725b
sbb eax, eax
or eax, 1
test eax, eax
je 0x427526
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x42727c
push eax
push ebx
call fcn.00477afc
add esp, 8
test eax, eax
je 0x427526
mov eax, dword [edi + 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x427526
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x427526
movzx eax, word [ebp - 0x24]
mov ecx, 1
mov di, word [ebp - 0x22]
mov edx, 0x49c590
imul esi, eax, 0x16d
nop dword [eax]
movzx eax, di
cmp di, 0xc
jb 0x4272de
mov eax, 0xc
cmp ecx, eax
jge 0x4272ea
add esi, dword [edx]
inc ecx
add edx, 4
jmp 0x4272d0
movzx ecx, word [ebp - 0x1e]
mov eax, dword [ebp - 0x44]
add ecx, esi
add eax, 0xfffffffd
cmp ecx, eax
jge 0x427520
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x427520
mov esi, dword [str.Mid.mid]
mov ebx, 0x4adfe0
mov dword [ebp - 0x40], ebx
test esi, esi
je 0x42740c
push 1
push 0x250
call fcn.00474099
mov edi, eax
add esp, 8
test edi, edi
je 0x4273fb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4273ef
nop
test byte [edi], 0x10
jne 0x4273d8
lea esi, [edi + 0x2c]
mov ecx, 0x49d400
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x427389
test dx, dx
je 0x427385
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x427389
add eax, 4
add ecx, 4
test dx, dx
jne 0x427363
xor eax, eax
jmp 0x42738e
sbb eax, eax
or eax, 1
test eax, eax
je 0x4273d8
mov eax, 0x49d3f8
mov ecx, esi
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4273c6
test dx, dx
je 0x4273c2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4273c6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4273a0
xor eax, eax
jmp 0x4273cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4273d8
push esi
call fcn.0047529a
add esp, 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x427350
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.004740af
mov ebx, dword [ebp - 0x40]
add esp, 4
mov esi, dword [ebx + 4]
add ebx, 4
mov dword [ebp - 0x40], ebx
test esi, esi
jne 0x427323
mov esi, dword [ebp - 0x2c]
mov ebx, 1
push esi
push 0x49d404
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4274d8
nop dword [eax + eax]
test byte [esi], 0x10
je 0x4274be
add esi, 0x2c
mov ecx, 0x49d400
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x427469
test dx, dx
je 0x427465
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x427469
add eax, 4
add ecx, 4
test dx, dx
jne 0x427443
xor eax, eax
jmp 0x42746e
sbb eax, eax
or eax, 1
test eax, eax
je 0x4274a6
mov eax, 0x49d3f8
mov cx, word [esi]
cmp cx, word [eax]
jne 0x42749d
test cx, cx
je 0x427499
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x42749d
add esi, 4
add eax, 4
test cx, cx
jne 0x427477
xor eax, eax
jmp 0x4274a2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4274bb
mov esi, dword [ebp - 0x2c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x427430
jmp 0x4274c0
mov esi, dword [ebp - 0x2c]
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x4274d8
push 0x49d3f8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x427523
push 2
push 0x104
call fcn.00474099
mov esi, eax
add esp, 8
test esi, esi
je 0x427515
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x49d3f8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.00477cfd
push esi
call fcn.004740af
add esp, 8
jmp 0x427520
push 0x49d3f8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4271e0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.004740af
push edi
call fcn.004740af
push ebx
call fcn.004740af
push dword [ebp - 0x3c]
call fcn.004740af
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004705b7
mov esp, ebp
pop ebp
ret