Function at 0x4104c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x496980]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x140
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x144]
push 0
push eax
mov dword [ebp - 0x150], edi
call fcn.00440bf0
push edi
call fcn.0042dd5b
add esp, 0x10
test eax, eax
jne 0x410551
lea eax, [ebp - 0x144]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x148], esi
cmp esi, 0xffffffff
je 0x410551
push 0x114
push 1
call fcn.0044a2f4
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x410563
push 0x114
push edi
push str.:5:FindFirstFileOrdered___s___FAILED:_calloc__d__FAILED.
call fcn.0040d324
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f5c5
leave
ret
push 0x104
lea esi, [ebx + 0x10]
push edi
push esi
call fcn.0042f204
push esi
call fcn.0042e684
push esi
call fcn.0042e5c3
push esi
call fcn.0042e40d
push esi
call fcn.0042c9fc
and dword [ebx + 0xc], 0
mov esi, 0x140
and dword [ebx + 4], 0
push esi
push 0x33
mov dword [ebx + 8], 0x32
call fcn.0044a2f4
add esp, 0x24
mov dword [ebx], eax
test eax, eax
jne 0x4105db
mov eax, dword [ebx + 8]
add eax, esi
push eax
push edi
push str.:5:FindFirstFileOrdered___s___FAILED:_calloc2__d__FAILED.
call fcn.0040d324
add esp, 0xc
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call fcn.0044a2ff
pop ecx
jmp 0x410551
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x148]
and eax, 0x200000
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x410600
test byte [ebp - 0x144], 0x10
jne 0x410699
test dword [ebp + 0x10], 0x800000
je 0x410616
test byte [ebp - 0x144], 0x10
je 0x410699
test dword [ebp + 0x10], 0x400000
je 0x41064d
lea eax, [ebp - 0x118]
push 0x463f54
push eax
call fcn.0044a5a7
pop ecx
pop ecx
test eax, eax
je 0x410699
lea eax, [ebp - 0x118]
push 0x4696dc
push eax
call fcn.0044a5a7
pop ecx
pop ecx
test eax, eax
je 0x410699
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
jl 0x41067c
imul eax, eax, 0x280
mov edi, 0x140
add eax, edi
push eax
push dword [ebx]
call fcn.0044bb05
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebx + 8]
add eax, eax
test ecx, ecx
je 0x4106b6
mov dword [ebx], ecx
mov dword [ebx + 8], eax
imul edi, dword [ebx + 4], 0x140
lea esi, [ebp - 0x144]
push 0x50
pop ecx
add edi, dword [ebx]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 4]
mov esi, dword [ebp - 0x148]
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4106cd
mov eax, dword [ebp - 0x14c]
jmp 0x4105ef
inc eax
push eax
push dword [ebp - 0x150]
push str.:FindFirstFileOrdered___s___FAILED:_realloc___FAILED_to_allocate__d_file_slots.
call fcn.0040d324
add esp, 0xc
jmp 0x4106d2
mov edi, 0x140
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebx + 4]
test eax, eax
jg 0x4106f3
push dword [ebx]
call fcn.0044a2ff
push ebx
call fcn.0044a2ff
pop ecx
jmp 0x4105d5
test byte [ebp + 0x10], 1
mov esi, 0x100000
je 0x41071b
test dword [ebp + 0x10], esi
je 0x41070a
push 0x4109a0
jmp 0x41070f
push fcn.00410986
push edi
push eax
push dword [ebx]
call fcn.0044bb10
add esp, 0x10
test byte [ebp + 0x10], 2
je 0x410740
test dword [ebp + 0x10], esi
je 0x41072d
push 0x4108c7
jmp 0x410732
push 0x4108ae
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.0044bb10
add esp, 0x10
test byte [ebp + 0x10], 4
je 0x410765
test dword [ebp + 0x10], esi
je 0x410752
push 0x41096d
jmp 0x410757
push 0x410954
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.0044bb10
add esp, 0x10
test byte [ebp + 0x10], 8
je 0x41078a
test dword [ebp + 0x10], esi
je 0x410777
push 0x41085f
jmp 0x41077c
push 0x410846
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.0044bb10
add esp, 0x10
test byte [ebp + 0x10], 0x10
je 0x4107af
test dword [ebp + 0x10], esi
je 0x41079c
push 0x410a06
jmp 0x4107a1
push 0x4109ba
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.0044bb10
add esp, 0x10
test byte [ebp + 0x10], 0x20
je 0x4107d4
test dword [ebp + 0x10], esi
je 0x4107c1
push 0x410894
jmp 0x4107c6
push 0x410878
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.0044bb10
add esp, 0x10
test byte [ebp + 0x10], 0x40
je 0x4107f9
test dword [ebp + 0x10], esi
je 0x4107e6
push 0x410940
jmp 0x4107eb
push fcn.004108e0
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.0044bb10
add esp, 0x10
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x410816
imul esi, dword [ebx + 0xc], 0x140
mov edi, eax
push 0x50
pop ecx
add esi, dword [ebx]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0xc]
mov eax, dword [0x4a015c]
test eax, eax
jne 0x410829
call fcn.00427911
mov dword [0x4a015c], eax
push ebx
push eax
call fcn.00427c73
cmp dword [0x4a015c], 0
pop ecx
pop ecx
je 0x4106e0
mov eax, ebx
jmp 0x410554