Function at 0x471790
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x14c
push ebx
push esi
push edi
mov edi, dword [esp + 0x15c]
push edi
mov dword [esp + 0x18], 0
call fcn.00472860
add esp, 4
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x471931
push 0x2f
push edi
call fcn.0046ec00
mov esi, eax
add esp, 8
test esi, esi
je 0x4717fd
mov bl, byte [esi + 1]
add esi, 1
push edi
mov byte [esi], 0
call fcn.00443730
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], 1
mov byte [esi], bl
jmp 0x471805
mov dword [esp + 0xc], 0x56eaa4
mov eax, dword [esp + 0xc]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x471810
mov ecx, dword [esp + 0x164]
mov ebx, dword [esp + 0x160]
sub eax, edx
push ebp
mov ebp, dword [ecx]
mov edi, eax
mov edi, edi
mov eax, dword [ebx]
lea edx, [ebp*4 + 8]
push edx
push eax
call fcn.004436b0
mov dword [ebx], eax
lea eax, [esp + 0x50]
add esp, 8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x471850
sub eax, edx
lea ecx, [edi + eax + 1]
push ecx
call fcn.00443680
mov edx, dword [esp + 0x14]
push edi
mov esi, eax
push edx
push esi
call fcn.00424270
lea eax, [esp + 0x58]
mov edx, eax
mov ecx, edi
add esp, 0x10
sub ecx, edx
lea edx, [ecx + esi]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x471883
mov eax, dword [0x56ec14]
mov edx, dword [0x53f4e4]
lea ecx, [eax*8]
sub ecx, eax
test byte [edx + ecx*4 + 0xc], 2
lea eax, [edx + ecx*4]
je 0x4718cf
mov eax, dword [eax]
mov ecx, dword [str._unknown_program_]
push eax
push ecx
push str._s_MONITOR:_s:
call fcn.00442db0
push esi
push 0x5430d0
call fcn.00442cd0
add esp, 0x14
mov edx, dword [ebx]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
mov dword [edx + ebp*4], esi
push ecx
add ebp, 1
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x471830
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
mov eax, dword [ebx]
mov ecx, dword [esp + 0x168]
mov dword [eax + ebp*4], 0
mov dword [ecx], ebp
pop ebp
je 0x4719e8
mov edx, dword [esp + 0xc]
push edx
call fcn.00418550
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14c
ret
mov esi, dword [esp + 0x164]
add dword [esi], 1
mov eax, dword [esi]
mov ebx, dword [esp + 0x160]
mov ecx, dword [ebx]
lea eax, [eax*4 + 4]
push eax
push ecx
call fcn.004436b0
mov dword [ebx], eax
mov eax, edi
add esp, 8
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x471960
sub eax, edx
add eax, 1
push eax
call fcn.00443680
mov edx, dword [esi]
mov ecx, dword [ebx]
mov dword [ecx + edx*4 - 4], eax
mov edx, dword [esi]
mov eax, dword [ebx]
mov ecx, dword [eax + edx*4 - 4]
add esp, 4
mov al, byte [edi]
mov byte [ecx], al
add edi, 1
add ecx, 1
test al, al
jne 0x471987
mov eax, dword [0x56ec14]
mov edx, dword [0x53f4e4]
lea ecx, [eax*8]
sub ecx, eax
test byte [edx + ecx*4 + 0xc], 2
lea eax, [edx + ecx*4]
je 0x4719dd
mov eax, dword [eax]
mov ecx, dword [str._unknown_program_]
push eax
push ecx
push str._s_MONITOR:_s:
call fcn.00442db0
mov edx, dword [esi]
mov eax, dword [ebx]
mov ecx, dword [eax + edx*4 - 4]
push ecx
push str.Got_file___s__n
call fcn.00442cd0
add esp, 0x14
mov edx, dword [esi]
mov eax, dword [ebx]
mov dword [eax + edx*4], 0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14c
ret