Function at 0x4798e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab7e6
mov eax, dword fs:[0]
push eax
sub esp, 0x5c8
mov eax, dword [0x4de880]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x548], ecx
mov dword [ebp - 0x544], 0
mov dword [ebp - 4], 1
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x2bc]
call fcn.00404240
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2a0]
call fcn.00404240
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x17c]
call fcn.00404240
mov byte [ebp - 4], 4
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x17c]
call fcn.004061d0
push 0xffffffffffffffff
push 0x4ba474
lea ecx, [ebp + 0x24]
call fcn.0040db90
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x479a21
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
push 0
lea edx, [ebp - 0x304]
push edx
lea ecx, [ebp + 0x24]
call fcn.0040dbc0
mov dword [ebp - 0x54c], eax
mov eax, dword [ebp - 0x54c]
mov dword [ebp - 0x550], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x550]
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.004061d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x304]
call fcn.00401e40
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp + 0x24]
call fcn.0040dbc0
mov dword [ebp - 0x554], eax
mov ecx, dword [ebp - 0x554]
mov dword [ebp - 0x558], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x558]
push edx
lea ecx, [ebp - 0x2a0]
call fcn.004061d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x320]
call fcn.00401e40
push 0
push 0x4ba478
lea ecx, [ebp + 0x24]
call fcn.0040db10
cmp eax, 0xffffffff
je 0x479a49
push 0
push 0x4ba47c
lea ecx, [ebp + 0x24]
call fcn.0040db10
cmp eax, 0xffffffff
jne 0x479a61
push 0
push 0x4ba480
lea ecx, [ebp + 0x24]
call fcn.0040db10
cmp eax, 0xffffffff
je 0x479cee
mov byte [ebp - 0x16], 1
push 0
push 0x4ba484
lea ecx, [ebp + 0x24]
call fcn.0040db10
cmp eax, 0xffffffff
je 0x479b1d
push 0x4ba488
lea ecx, [ebp - 0x33c]
call fcn.004021a0
mov byte [ebp - 4], 7
push 0x4ba48c
lea ecx, [ebp - 0x358]
call fcn.004021a0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x358]
push ecx
lea edx, [ebp + 0x24]
push edx
lea eax, [ebp - 0x374]
push eax
call fcn.00484d90
add esp, 0x10
mov dword [ebp - 0x55c], eax
mov ecx, dword [ebp - 0x55c]
mov dword [ebp - 0x560], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x560]
push edx
lea ecx, [ebp + 0x24]
call fcn.004061d0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x374]
call fcn.00401e40
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x358]
call fcn.00401e40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x33c]
call fcn.00401e40
jmp 0x479cee
push 0x4ba490
lea ecx, [ebp - 0x390]
call fcn.004021a0
mov byte [ebp - 4], 0xa
push 0x4ba494
lea ecx, [ebp - 0x3ac]
call fcn.004021a0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x390]
push eax
lea ecx, [ebp - 0x3ac]
push ecx
lea edx, [ebp + 0x24]
push edx
lea eax, [ebp - 0x3c8]
push eax
call fcn.00484d90
add esp, 0x10
mov dword [ebp - 0x564], eax
mov ecx, dword [ebp - 0x564]
mov dword [ebp - 0x568], ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x568]
push edx
lea ecx, [ebp + 0x24]
call fcn.004061d0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x3c8]
call fcn.00401e40
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x3ac]
call fcn.00401e40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x390]
call fcn.00401e40
push 0x4ba49c
lea ecx, [ebp - 0x3e4]
call fcn.004021a0
mov byte [ebp - 4], 0xd
push str._a_z_
lea ecx, [ebp - 0x400]
call fcn.004021a0
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x3e4]
push eax
lea ecx, [ebp - 0x400]
push ecx
lea edx, [ebp + 0x24]
push edx
lea eax, [ebp - 0x41c]
push eax
call fcn.00484d90
add esp, 0x10
mov dword [ebp - 0x56c], eax
mov ecx, dword [ebp - 0x56c]
mov dword [ebp - 0x570], ecx
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x570]
push edx
lea ecx, [ebp + 0x24]
call fcn.004061d0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x41c]
call fcn.00401e40
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x400]
call fcn.00401e40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3e4]
call fcn.00401e40
push 0x4ba4a8
lea ecx, [ebp - 0x438]
call fcn.004021a0
mov byte [ebp - 4], 0x10
push str._0_9_
lea ecx, [ebp - 0x454]
call fcn.004021a0
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x454]
push ecx
lea edx, [ebp + 0x24]
push edx
lea eax, [ebp - 0x470]
push eax
call fcn.00484d90
add esp, 0x10
mov dword [ebp - 0x574], eax
mov ecx, dword [ebp - 0x574]
mov dword [ebp - 0x578], ecx
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x578]
push edx
lea ecx, [ebp + 0x24]
call fcn.004061d0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x470]
call fcn.00401e40
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x454]
call fcn.00401e40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x438]
call fcn.00401e40
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp + 0x24]
call fcn.00401df0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0xffffffff
je 0x47a4ab
lea ecx, [ebp - 0x2d8]
call fcn.00404240
mov byte [ebp - 4], 0x13
push 0x4ba4b4
lea ecx, [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x479d52
push 0x4ba4b8
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x479d66
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2d8]
call fcn.00401e40
jmp 0x47a424
mov eax, dword [ebp - 0x15c]
and eax, 0x10
je 0x479d7b
cmp dword [ebp + 0x40], 4
jne 0x47a400
mov ecx, dword [ebp - 0x548]
call fcn.00474c80
movzx ecx, al
test ecx, ecx
je 0x479df6
mov byte [ebp - 0x471], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2d8]
call fcn.00401e40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x17c]
call fcn.00401e40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2a0]
call fcn.00401e40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2bc]
call fcn.00401e40
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401e40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00401e40
mov al, byte [ebp - 0x471]
jmp 0x47a54a
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x490]
push ecx
call fcn.00405970
add esp, 0xc
mov dword [ebp - 0x57c], eax
mov edx, dword [ebp - 0x57c]
mov dword [ebp - 0x580], edx
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x580]
push eax
lea ecx, [ebp - 0x2d8]
call fcn.004061d0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x490]
call fcn.00401e40
cmp dword [ebp + 0x40], 4
je 0x479f01
lea ecx, [ebp - 0x2d8]
push ecx
lea edx, [ebp - 0x4b0]
push edx
call fcn.00483e20
add esp, 8
mov dword [ebp - 0x584], eax
mov eax, dword [ebp - 0x544]
or eax, 1
mov dword [ebp - 0x544], eax
mov ecx, dword [ebp - 0x584]
call fcn.00401050
push eax
mov ecx, dword [ebp - 0x548]
call fcn.00474ac0
movzx ecx, al
test ecx, ecx
jne 0x479eaf
cmp dword [ebp + 0x40], 1
jle 0x479eaf
mov dword [ebp - 0x588], 1
jmp 0x479eb9
mov dword [ebp - 0x588], 0
mov dl, byte [ebp - 0x588]
mov byte [ebp - 0x491], dl
mov eax, dword [ebp - 0x544]
and eax, 1
je 0x479ee2
and dword [ebp - 0x544], 0xfffffffe
lea ecx, [ebp - 0x4b0]
call fcn.00401030
movzx ecx, byte [ebp - 0x491]
test ecx, ecx
je 0x479f01
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2d8]
call fcn.00401e40
jmp 0x47a424
push 0x104
push 0
lea edx, [ebp - 0x284]
push edx
call fcn.0043ff60
add esp, 0xc
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x4cc]
push ecx
call fcn.00483e20
add esp, 8
mov dword [ebp - 0x58c], eax
mov ecx, dword [ebp - 0x58c]
call fcn.00401050
push eax
push 4
mov edx, dword [ebp - 0x548]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x548]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x4cc]
call fcn.00401030
mov byte [ebp - 0x2da], 0
mov byte [ebp - 0x2d9], 0
push 0x104
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4d0], esp
lea eax, [ebp - 0x284]
push eax
call fcn.004021a0
mov dword [ebp - 0x590], eax
mov ecx, dword [ebp - 0x590]
mov dword [ebp - 0x594], ecx
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2d8]
call fcn.00401df0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4d4], esp
push eax
call fcn.004021a0
mov dword [ebp - 0x598], eax
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x548]
call fcn.004798e0
lea edx, [ebp - 0x284]
push edx
call fcn.0043fbe0
add esp, 4
test eax, eax
setne al
mov byte [ebp - 0x2da], al
mov cl, byte [ebp - 0x2da]
mov byte [ebp - 0x2d9], cl
movzx edx, byte [ebp - 0x16]
test edx, edx
je 0x47a08b
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x4f8]
call fcn.004021a0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2a0]
call fcn.00401df0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4dc], esp
push eax
call fcn.004021a0
mov dword [ebp - 0x59c], eax
lea ecx, [ebp - 0x4f8]
push ecx
mov ecx, dword [ebp - 0x548]
call fcn.00477b70
mov byte [ebp - 0x59d], al
mov dl, byte [ebp - 0x59d]
mov byte [ebp - 0x4d5], dl
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x4f8]
call fcn.00401e40
movzx eax, byte [ebp - 0x4d5]
test eax, eax
je 0x47a086
mov byte [ebp - 0x2d9], 1
jmp 0x47a1c3
push 0
push 0x4ba4bc
lea ecx, [ebp - 0x2a0]
call fcn.0040db10
cmp eax, 0xffffffff
jne 0x47a0ce
lea ecx, [ebp - 0x130]
push ecx
call fcn.0043fbe0
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x2a0]
call fcn.004018e0
cmp esi, eax
jne 0x47a0ce
mov byte [ebp - 0x2d9], 1
jmp 0x47a1c3
push 0
push 0x4ba4c0
lea ecx, [ebp - 0x2a0]
call fcn.0040db10
cmp eax, 0xffffffff
je 0x47a1c3
push 0
push 0x4ba4c4
lea ecx, [ebp - 0x2a0]
call fcn.0040db10
cmp eax, 0xffffffff
je 0x47a1bc
lea edx, [ebp - 0x130]
push edx
call fcn.0043fbe0
add esp, 4
mov dword [ebp - 0x2e0], eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4fc], esp
push 0x4ba4c8
call fcn.004021a0
mov dword [ebp - 0x5a4], eax
mov eax, dword [ebp - 0x5a4]
mov dword [ebp - 0x5a8], eax
mov byte [ebp - 4], 0x17
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x500], esp
lea edx, [ebp - 0x2a0]
push edx
call fcn.00403690
mov dword [ebp - 0x5ac], eax
mov byte [ebp - 4], 0x13
call fcn.00475380
add esp, 0x38
mov dword [ebp - 0x5b0], eax
mov eax, dword [ebp - 0x5b0]
mov dword [ebp - 0x2e4], eax
push 0
push 0x4ba4cc
lea ecx, [ebp - 0x2a0]
call fcn.0040db10
cmp eax, 0xffffffff
je 0x47a1a5
mov ecx, dword [ebp - 0x2e4]
add ecx, 4
mov dword [ebp - 0x2e4], ecx
mov edx, dword [ebp - 0x2e0]
cmp edx, dword [ebp - 0x2e4]
jl 0x47a1ba
mov byte [ebp - 0x2d9], 1
jmp 0x47a1c3
mov byte [ebp - 0x2d9], 1
movzx eax, byte [ebp - 0x2d9]
test eax, eax
je 0x47a23b
cmp dword [ebp + 0x40], 3
jne 0x47a23b
lea ecx, [ebp - 0x2d8]
push ecx
lea edx, [ebp - 0x520]
push edx
call fcn.00483e20
add esp, 8
mov dword [ebp - 0x5b4], eax
mov eax, dword [ebp - 0x5b4]
mov dword [ebp - 0x5b8], eax
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x5b8]
call fcn.00401050
push eax
call fcn.00461660
add esp, 4
mov byte [ebp - 0x501], al
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x520]
call fcn.00401030
movzx ecx, byte [ebp - 0x501]
test ecx, ecx
je 0x47a23b
mov byte [ebp - 0x2d9], 0
movzx edx, byte [ebp - 0x2d9]
test edx, edx
je 0x47a400
lea eax, [ebp - 0x2d8]
push eax
mov ecx, dword [ebp - 0x548]
call fcn.00414350
mov ecx, eax
call fcn.004018e0
test eax, eax
jne 0x47a400
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x524], esp
lea edx, [ebp - 0x2d8]
push edx
call fcn.00403690
mov dword [ebp - 0x5bc], eax
mov ecx, dword [ebp - 0x548]
call fcn.004793c0
mov byte [ebp - 0x5bd], al
movzx eax, byte [ebp - 0x5bd]
test eax, eax
je 0x47a2b8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2d8]
call fcn.00401e40
jmp 0x47a424
movzx ecx, byte [ebp - 0x2da]
test ecx, ecx
je 0x47a2d2
lea edx, [ebp - 0x284]
push edx
lea ecx, [ebp + 8]
call fcn.00406300
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2d8]
push ecx
mov ecx, dword [ebp - 0x548]
call fcn.00414350
mov ecx, eax
call fcn.004061d0
push 0x8c
call fcn.00422de0
add esp, 4
mov dword [ebp - 0x52c], eax
cmp dword [ebp - 0x52c], 0
je 0x47a31e
mov ecx, dword [ebp - 0x52c]
call fcn.004073b0
mov dword [ebp - 0x5c4], eax
jmp 0x47a328
mov dword [ebp - 0x5c4], 0
mov edx, dword [ebp - 0x5c4]
mov dword [ebp - 0x528], edx
mov eax, dword [ebp - 0x528]
mov dword [ebp - 0x2e8], eax
mov ecx, dword [ebp - 0x2e8]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x530], esp
lea edx, [ebp + 8]
push edx
call fcn.00403690
mov dword [ebp - 0x5c8], eax
mov eax, dword [ebp - 0x5c8]
mov dword [ebp - 0x5cc], eax
mov byte [ebp - 4], 0x19
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x534], esp
lea edx, [ebp - 0x2d8]
push edx
call fcn.00403690
mov dword [ebp - 0x5d0], eax
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x548]
call fcn.00475840
mov eax, dword [ebp - 0x2e8]
push eax
push 3
mov ecx, dword [ebp - 0x548]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x548]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x2e8]
mov dword [ebp - 0x53c], edx
mov eax, dword [ebp - 0x53c]
mov dword [ebp - 0x538], eax
cmp dword [ebp - 0x538], 0
je 0x47a3f6
push 1
mov ecx, dword [ebp - 0x538]
call fcn.00407400
mov dword [ebp - 0x5d4], eax
jmp 0x47a400
mov dword [ebp - 0x5d4], 0
mov ecx, dword [ebp - 0x548]
mov edx, dword [ecx + 0x24]
add edx, 1
mov eax, dword [ebp - 0x548]
mov dword [eax + 0x24], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2d8]
call fcn.00401e40
lea ecx, [ebp - 0x15c]
push ecx
mov edx, dword [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x479d17
mov ecx, dword [ebp - 0x548]
call fcn.0041cf70
test eax, eax
setne al
mov byte [ebp - 0x53d], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x17c]
call fcn.00401e40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2a0]
call fcn.00401e40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2bc]
call fcn.00401e40
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401e40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00401e40
mov al, byte [ebp - 0x53d]
jmp 0x47a54a
mov byte [ebp - 0x53e], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x17c]
call fcn.00401e40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2a0]
call fcn.00401e40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2bc]
call fcn.00401e40
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401e40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00401e40
mov al, byte [ebp - 0x53e]
jmp 0x47a54a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f9e9
mov esp, ebp
pop ebp
ret 0x3c