Function at 0x411540
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x428ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x10], ebx
push 0x1d
mov edi, 0xf
push str.hpGetDirectoryContents___path
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401890
mov esi, dword [esp + 0x1cc]
lea eax, [esp + 0x14]
push esi
push eax
mov dword [esp + 0x1c8], ebx
call fcn.00412300
mov eax, dword [esp + 0x34]
mov ebp, 0x10
add esp, 8
cmp eax, ebp
jb 0x4115bc
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041aebd
add esp, 4
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
push esi
mov dword [esp + 0x1c4], 1
call fcn.0040ffb0
add esp, 4
test al, al
je 0x41183f
mov edx, dword [esp + 0x1d0]
push edx
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00410090
add esp, 0xc
push 0x25
push str.Directory_exists__processing_contents
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c8], 2
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401890
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x1c8], 3
call fcn.00412300
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, ebp
mov byte [esp + 0x1c0], 2
jb 0x411655
mov eax, dword [esp + 0x18]
push eax
call fcn.0041aebd
add esp, 4
cmp dword [esp + 0x48], ebp
mov eax, dword [esp + 0x34]
jae 0x411663
lea eax, [esp + 0x34]
lea ecx, [esp + 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x41170b
push 0x1d
push str.Cant_find_directory_contents
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401890
lea edx, [esp + 0x14]
push esi
push edx
mov byte [esp + 0x1c8], 4
call fcn.00412300
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, ebp
mov byte [esp + 0x1c0], 2
jb 0x4116cb
mov eax, dword [esp + 0x18]
push eax
call fcn.0041aebd
add esp, 4
mov esi, dword [esp + 0x1c8]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call fcn.0040bcb0
cmp dword [esp + 0x48], ebp
jb 0x4116f1
mov edx, dword [esp + 0x34]
push edx
call fcn.0041aebd
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.0040a800
jmp 0x4118c6
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0xa4]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x411727
sub eax, edx
push eax
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x64]
call fcn.00401890
mov ecx, dword [esp + 0x70]
push 1
push 0x42b778
push ecx
push ebx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1d0], 5
call fcn.00404230
test eax, eax
je 0x41178e
mov edx, dword [esp + 0x70]
push 2
push 0x42bcc0
push edx
push ebx
lea ecx, [esp + 0x6c]
call fcn.00404230
test eax, eax
je 0x41178e
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x50]
call fcn.0040c6d0
jmp 0x4117e4
push ebp
push str.skipping_content
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401890
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x1c8], 6
call fcn.00412300
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, ebp
jb 0x4117d8
mov eax, dword [esp + 0x18]
push eax
call fcn.0041aebd
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
cmp dword [esp + 0x74], ebp
mov byte [esp + 0x1c0], 2
jb 0x4117ff
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0041aebd
add esp, 4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x78]
push edx
push eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call esi
test eax, eax
jne 0x411711
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x48], ebp
mov byte [esp + 0x1c0], 1
jb 0x41188d
mov edx, dword [esp + 0x34]
push edx
jmp 0x411885
push edi
push str.Not_a_directory
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00401890
lea eax, [esp + 0x30]
push esi
push eax
mov byte [esp + 0x1c8], 7
call fcn.00412300
mov eax, dword [esp + 0x50]
add esp, 8
cmp eax, ebp
mov byte [esp + 0x1c0], 1
jb 0x41188d
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0041aebd
add esp, 4
mov esi, dword [esp + 0x1c8]
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
call fcn.0040bcb0
mov edi, dword [esp + 0x50]
cmp edi, ebx
je 0x4118c6
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x54]
push eax
lea ecx, [esp + 0x50]
push ecx
push edx
push edi
call fcn.00401d20
push edi
call fcn.0041aebd
add esp, 0x14
mov ecx, dword [esp + 0x1b8]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b4
ret