Function at 0x407b39
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
cmp dword [0x420a88], 0
je 0x407b8b
cmp dword [ebp + 0xc], 0xffffffff
jne 0x407b8b
mov eax, dword [ebp + 0x18]
and eax, 0xff
test eax, eax
je 0x407b8b
mov ecx, dword [ebp + 0x18]
and ecx, 0xff
push ecx
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.0040652e
add esp, 0x2c
push 0
mov eax, dword [ebp + 0x14]
push eax
call fcn.0040df20
add esp, 8
mov dword [ebp - 0x35c], eax
mov ecx, dword [ebp - 0x35c]
mov byte [ecx], 0x5c
push 0x41be70
mov edx, dword [ebp - 0x35c]
add edx, 1
push edx
call fcn.0040dc70
add esp, 8
lea eax, [ebp - 0x358]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
je 0x407fc5
movsx edx, byte [ebp - 0x32c]
cmp edx, 0x2e
je 0x407c07
push 0x41be74
lea eax, [ebp - 0x32c]
push eax
call fcn.0040ecf0
add esp, 8
test eax, eax
jne 0x407c0c
jmp 0x407f9c
lea ecx, [ebp - 0x32c]
push ecx
mov edx, dword [ebp - 0x35c]
add edx, 1
push edx
call fcn.0040dc70
add esp, 8
mov eax, dword [ebp + 0x14]
push eax
call fcn.0040dd60
add esp, 4
cmp eax, 4
jb 0x407e35
push str..lnk
push 0
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0040df20
add esp, 8
sub eax, 4
push eax
call fcn.0040ecf0
add esp, 8
test eax, eax
jne 0x407e35
lea edx, [ebp - 0x694]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406251
add esp, 0xc
test eax, eax
je 0x407e35
push 0
lea edx, [ebp - 0x694]
push edx
call fcn.00403360
add esp, 8
mov dword [ebp - 4], eax
push 0x5c
mov eax, dword [ebp - 4]
push eax
call fcn.0040e530
add esp, 8
test eax, eax
je 0x407cc9
push 0x5c
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040e530
add esp, 8
add eax, 1
push eax
lea edx, [ebp - 0x888]
push edx
call fcn.0040dc70
add esp, 8
jmp 0x407cdc
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x888]
push ecx
call fcn.0040dc70
add esp, 8
mov edx, dword [ebp - 4]
push edx
call fcn.0040da3e
add esp, 4
mov eax, dword [ebp - 0x35c]
mov byte [eax], 0
push 0
lea ecx, [ebp - 0x694]
push ecx
call fcn.00403360
add esp, 8
mov dword [ebp - 0x218], eax
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.004038ca
add esp, 0xc
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
push edx
push 0xffffffffffffffff
push 0
push 1
push 0x1002
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [ebp - 0x464], eax
lea ecx, [ebp - 0x460]
push ecx
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x218]
push eax
lea ecx, [ebp - 0x32c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00406381
add esp, 0x14
and eax, 0xff
test eax, eax
je 0x407e27
cmp dword [ebp + 0xc], 0xffffffff
jne 0x407dd8
lea eax, [ebp - 0x888]
push eax
call fcn.0040634c
add esp, 4
and eax, 0xff
test eax, eax
je 0x407dd8
mov ecx, dword [ebp + 0x18]
and ecx, 0xff
push ecx
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.0040652e
add esp, 0x2c
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0xffffffff
je 0x407e27
mov eax, dword [ebp + 0x18]
and eax, 0xff
push eax
lea ecx, [ebp - 0x460]
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x32c]
push eax
push 6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x464]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040652e
add esp, 0x2c
mov ecx, dword [ebp - 0x35c]
mov byte [ecx], 0x5c
jmp 0x407f9c
mov edx, dword [ebp - 0x35c]
mov byte [edx], 0
lea eax, [ebp - 0x32c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0x41be90
lea edx, [ebp - 0x568]
push edx
call fcn.0040dddb
add esp, 0x10
push 0
lea eax, [ebp - 0x568]
push eax
call fcn.00403360
add esp, 8
mov dword [ebp - 0x218], eax
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x218]
push eax
call fcn.004038ca
add esp, 0xc
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
push ecx
push 0xffffffffffffffff
push 0
push 1
push 0x1002
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x218]
push edx
lea eax, [ebp - 0x32c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406381
add esp, 0x14
and eax, 0xff
test eax, eax
je 0x407f93
cmp dword [ebp + 0xc], 0xffffffff
jne 0x407f43
lea edx, [ebp - 0x32c]
push edx
call fcn.0040634c
add esp, 4
and eax, 0xff
test eax, eax
je 0x407f43
mov eax, dword [ebp + 0x18]
and eax, 0xff
push eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040652e
add esp, 0x2c
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0xffffffff
je 0x407f93
mov edx, dword [ebp + 0x18]
and edx, 0xff
push edx
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x32c]
push edx
push 5
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x464]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040652e
add esp, 0x2c
mov eax, dword [ebp - 0x35c]
mov byte [eax], 0x5c
lea ecx, [ebp - 0x358]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407be3
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret