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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da580
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x51c
mov eax, dword [0x524330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x4b4], ecx
and dword [ebp - 4], 0
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00403241
mov dword [ebp - 0x4b8], eax
mov byte [ebp - 4], 1
or dword [ebp - 0x374], 0xffffffff
push str.MFAData
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x3a0]
push eax
call fcn.004038b5
add esp, 0xc
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp - 0x4bc]
mov dword [ebp - 0x3ec], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3ec]
mov eax, dword [eax]
mov dword [ebp - 0x3f0], eax
push dword [ebp - 0x3f0]
push 0x104
lea eax, [ebp - 0x228]
push eax
call fcn.004020aa
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3a0]
sub eax, 0x10
mov dword [ebp - 0x3f8], eax
mov ecx, dword [ebp - 0x3f8]
call fcn.0040110c
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x374], eax
cmp dword [ebp - 0x374], 0xffffffff
je 0x402acc
call fcn.00498191
mov dword [ebp - 0x4c0], eax
push dword [ebp - 0x4c0]
lea ecx, [ebp - 0x378]
call fcn.00403ced
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x370]
and eax, 0x10
je 0x402587
jmp 0x40293d
lea eax, [ebp - 0x344]
push eax
lea ecx, [ebp - 0x38c]
call fcn.00403241
mov dword [ebp - 0x4c4], eax
mov byte [ebp - 4], 4
push 0
push str.progupd
lea ecx, [ebp - 0x38c]
call fcn.0040355e
cmp eax, 0xffffffff
je 0x40291f
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x384], eax
mov eax, dword [ebp - 0x364]
mov dword [ebp - 0x388], eax
mov dword [ebp - 0x380], 0xd53e8000
mov dword [ebp - 0x37c], 0x19db1de
mov eax, dword [ebp - 0x388]
sub eax, dword [ebp - 0x380]
mov ecx, dword [ebp - 0x384]
sbb ecx, dword [ebp - 0x37c]
mov dword [ebp - 0x388], eax
mov dword [ebp - 0x384], ecx
push 0
push 0x989680
push dword [ebp - 0x384]
push dword [ebp - 0x388]
call fcn.004bc530
mov dword [ebp - 0x398], eax
mov dword [ebp - 0x394], edx
lea eax, [ebp - 0x398]
push eax
call fcn.004bc4ca
pop ecx
push eax
lea ecx, [ebp - 0x378]
call fcn.00403dc5
mov eax, dword [ebp - 0x378]
mov dword [ebp - 0x4c8], eax
mov eax, dword [ebp - 0x4c8]
inc eax
mov dword [ebp - 0x4cc], eax
mov eax, dword [ebp - 0x4c8]
mov al, byte [eax]
mov byte [ebp - 0x4cd], al
inc dword [ebp - 0x4c8]
cmp byte [ebp - 0x4cd], 0
jne 0x402664
mov eax, dword [ebp - 0x4c8]
sub eax, dword [ebp - 0x4cc]
mov dword [ebp - 0x4d4], eax
push dword [ebp - 0x4d4]
push 0
push 0x4ee2b8
lea ecx, [ebp - 0x378]
call fcn.0040355e
push eax
lea eax, [ebp - 0x3a4]
push eax
lea ecx, [ebp - 0x378]
call fcn.004036cc
mov dword [ebp - 0x4d8], eax
mov eax, dword [ebp - 0x4d8]
mov dword [ebp - 0x420], eax
mov byte [ebp - 4], 5
push dword [ebp - 0x420]
lea ecx, [ebp - 0x378]
call fcn.00403d36
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x3a4]
sub eax, 0x10
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp - 0x424]
call fcn.0040110c
call fcn.00498191
mov dword [ebp - 0x4dc], eax
push dword [ebp - 0x4dc]
lea ecx, [ebp - 0x39c]
call fcn.00403ced
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x378]
mov dword [ebp - 0x4e0], eax
mov eax, dword [ebp - 0x4e0]
inc eax
mov dword [ebp - 0x4e4], eax
mov eax, dword [ebp - 0x4e0]
mov al, byte [eax]
mov byte [ebp - 0x4e5], al
inc dword [ebp - 0x4e0]
cmp byte [ebp - 0x4e5], 0
jne 0x40273c
mov eax, dword [ebp - 0x4e0]
sub eax, dword [ebp - 0x4e4]
mov dword [ebp - 0x4ec], eax
push dword [ebp - 0x4ec]
push 0x10
lea eax, [ebp - 0x3a8]
push eax
lea ecx, [ebp - 0x378]
call fcn.004036cc
mov dword [ebp - 0x4f0], eax
mov eax, dword [ebp - 0x4f0]
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 7
push dword [ebp - 0x428]
lea ecx, [ebp - 0x39c]
call fcn.00403d36
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x3a8]
sub eax, 0x10
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x42c]
call fcn.0040110c
push 7
push 0
lea eax, [ebp - 0x3ac]
push eax
lea ecx, [ebp - 0x378]
call fcn.004036cc
mov dword [ebp - 0x4f4], eax
mov eax, dword [ebp - 0x4f4]
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 8
push dword [ebp - 0x430]
lea ecx, [ebp - 0x378]
call fcn.00403d36
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x3ac]
sub eax, 0x10
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x434]
call fcn.0040110c
mov eax, dword [ebp - 0x39c]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x438], eax
push dword [ebp - 0x438]
push dword [ebp - 0x39c]
lea ecx, [ebp - 0x378]
call fcn.00403e1c
push 0x20
lea ecx, [ebp - 0x378]
call fcn.00403461
mov eax, dword [ebp - 0x378]
mov dword [ebp - 0x4f8], eax
mov eax, dword [ebp - 0x4f8]
inc eax
mov dword [ebp - 0x4fc], eax
mov eax, dword [ebp - 0x4f8]
mov al, byte [eax]
mov byte [ebp - 0x4fd], al
inc dword [ebp - 0x4f8]
cmp byte [ebp - 0x4fd], 0
jne 0x402871
mov eax, dword [ebp - 0x4f8]
sub eax, dword [ebp - 0x4fc]
mov dword [ebp - 0x504], eax
mov eax, dword [ebp - 0x504]
dec eax
push eax
push 0
lea eax, [ebp - 0x3b0]
push eax
lea ecx, [ebp - 0x378]
call fcn.004036cc
mov dword [ebp - 0x508], eax
mov eax, dword [ebp - 0x508]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 9
push dword [ebp - 0x43c]
lea ecx, [ebp - 0x378]
call fcn.00403d36
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x3b0]
sub eax, 0x10
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x440]
call fcn.0040110c
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x39c]
sub eax, 0x10
mov dword [ebp - 0x444], eax
mov ecx, dword [ebp - 0x444]
call fcn.0040110c
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x38c]
sub eax, 0x10
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x448]
call fcn.0040110c
lea eax, [ebp - 0x370]
push eax
push dword [ebp - 0x374]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402577
mov eax, dword [ebp - 0x378]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x44c], eax
xor eax, eax
cmp dword [ebp - 0x44c], 0
sete al
movzx eax, al
test eax, eax
jne 0x402a39
lea eax, [ebp - 0x378]
push eax
mov ecx, dword [ebp - 0x4b4]
call fcn.00403d36
push ecx
mov ecx, esp
mov dword [ebp - 0x3b4], esp
push 0
call fcn.00403241
mov dword [ebp - 0x50c], eax
mov byte [ebp - 4], 0xa
push ecx
mov eax, esp
mov dword [ebp - 0x3b8], esp
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x378]
sub eax, 0x10
mov dword [ebp - 0x458], eax
push dword [ebp - 0x458]
call fcn.004042f4
pop ecx
mov dword [ebp - 0x510], eax
mov eax, dword [ebp - 0x510]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp - 0x45c]
add eax, 0x10
mov ecx, dword [ebp - 0x460]
mov dword [ecx], eax
mov byte [ebp - 4], 0xb
push ecx
mov ecx, esp
mov dword [ebp - 0x3bc], esp
push 0x4ee2bc
call fcn.00403241
mov dword [ebp - 0x514], eax
mov byte [ebp - 4], 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x3c0], esp
push 0x4ee2c0
call fcn.00403241
mov byte [ebp - 4], 3
call fcn.00459e6b
add esp, 0x10
jmp 0x402aac
push ecx
mov ecx, esp
mov dword [ebp - 0x3c4], esp
push 0
call fcn.00403241
mov dword [ebp - 0x518], eax
mov byte [ebp - 4], 0xd
push ecx
mov ecx, esp
mov dword [ebp - 0x3c8], esp
push 0x4ee2c8
call fcn.00403241
mov dword [ebp - 0x51c], eax
mov byte [ebp - 4], 0xe
push ecx
mov ecx, esp
mov dword [ebp - 0x3cc], esp
push 0x4ee2e0
call fcn.00403241
mov dword [ebp - 0x520], eax
mov byte [ebp - 4], 0xf
push ecx
mov ecx, esp
mov dword [ebp - 0x3d0], esp
push 0x4ee2e4
call fcn.00403241
mov byte [ebp - 4], 3
call fcn.00459e6b
add esp, 0x10
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x378]
sub eax, 0x10
mov dword [ebp - 0x494], eax
mov ecx, dword [ebp - 0x494]
call fcn.0040110c
jmp 0x402b3f
push ecx
mov ecx, esp
mov dword [ebp - 0x3d4], esp
push 0
call fcn.00403241
mov dword [ebp - 0x524], eax
mov byte [ebp - 4], 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x3d8], esp
push 0x4ee2ec
call fcn.00403241
mov dword [ebp - 0x528], eax
mov byte [ebp - 4], 0x11
push ecx
mov ecx, esp
mov dword [ebp - 0x3dc], esp
push 0x4ee308
call fcn.00403241
mov dword [ebp - 0x52c], eax
mov byte [ebp - 4], 0x12
push ecx
mov ecx, esp
mov dword [ebp - 0x3e0], esp
push 0x4ee30c
call fcn.00403241
mov byte [ebp - 4], 1
call fcn.00459e6b
add esp, 0x10
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
sub eax, 0x10
mov dword [ebp - 0x4b0], eax
mov ecx, dword [ebp - 0x4b0]
call fcn.0040110c
jmp 0x402b69
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bc439
leave
ret