Function at 0x479c70
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x2cc
push ebx
push esi
push edi
push 0xc4
xor ebx, ebx
call fcn.0048ac32
add esp, 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0x94]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x94]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 0x94]
push str.lang_.dll
lea eax, [esp + 0x98]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea ecx, [esp + 0x198]
lea edx, [esp + 0x94]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x479cfb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2cc
ret
push ebp
test byte [esp + 0x19c], 0x10
jne 0x479dd7
cmp ebx, 0x30
jge 0x479dd7
lea eax, [esp + 0x1c8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x479dd7
lea ecx, [esp + 0x18]
push 0x40
push ecx
push 0x9ed
push ebp
call dword [sym.imp.USER32.dll_LoadStringA]
mov edi, str.NNNESTERJ_RESOURCE_DLL
lea esi, [esp + 0x18]
mov ecx, 0x17
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x479d5b
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x479dd7
lea eax, [esp + 0x18]
push 0x40
push eax
push 0x9ec
push ebp
call dword [sym.imp.USER32.dll_LoadStringA]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x124
call fcn.0048ac32
mov edi, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x98]
mov esi, eax
mov dword [edi + ebx*4], eax
mov al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
test al, al
jne 0x479d92
mov ecx, dword [edi + ebx*4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov eax, dword [edi + ebx*4]
lea edx, [esp + 0x1c8]
push edx
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
mov eax, dword [edi + ebx*4]
lea edx, [esp + 0x18]
add eax, 0x104
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
test cl, cl
jne 0x479dc5
inc ebx
mov dword [edi + ebx*4], 0
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x19c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x479cfc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
pop ebp
jne 0x479e0a
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2cc
ret
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x2dc]
mov edx, dword [0x517ff4]
push ecx
push 0x479a20
push edi
push 0x164
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x479e75
mov ecx, dword [0x517ff4]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x14]
push 0x40
push eax
push 0x8a2
push ecx
call esi
mov eax, dword [0x517ff4]
lea edx, [esp + 0x54]
push 0x40
push edx
push 0x8a6
push eax
call esi
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x58]
push ecx
push edx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor esi, esi
test ebx, ebx
jle 0x479e90
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + esi*4]
push ecx
call fcn.0048ace4
add esp, 4
inc esi
cmp esi, ebx
jl 0x479e7b
mov edx, dword [esp + 0xc]
push edx
call fcn.0048ace4
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x2cc
ret