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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x664f4e
mov eax, dword fs:[0]
push eax
sub esp, 0x3dc
mov eax, dword [0x71ccd4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x3a1], 0
lea ecx, [ebp + 8]
call fcn.0044d5d0
push eax
push 0x68a478
lea eax, [ebp - 0x218]
push eax
call fcn.0044dd10
add esp, 0xc
lea ecx, [ebp - 0x3a0]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x3c0], eax
cmp dword [ebp - 0x3c0], 0xffffffff
jne 0x5020df
mov al, byte [ebp - 0x3a1]
mov byte [ebp - 0x3a9], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0044bc10
mov al, byte [ebp - 0x3a9]
jmp 0x502651
movzx ecx, byte [ebp - 0x3a1]
test ecx, ecx
je 0x5020ef
jmp 0x502623
lea edx, [ebp - 0x374]
mov dword [ebp - 0x3b4], edx
push 0x68a480
mov eax, dword [ebp - 0x3b4]
push eax
call fcn.006101d0
add esp, 8
test eax, eax
je 0x50212b
push 0x68a484
mov ecx, dword [ebp - 0x3b4]
push ecx
call fcn.006101d0
add esp, 8
test eax, eax
jne 0x502130
jmp 0x502607
mov edx, dword [ebp - 0x3a0]
and edx, 0x10
je 0x5021a0
mov eax, dword [ebp - 0x3b4]
push eax
push 0x68a488
lea ecx, [ebp + 8]
call fcn.0044d5d0
push eax
push str._s_s_s
lea ecx, [ebp - 0x114]
push ecx
call fcn.0044dd10
add esp, 0x14
xor edx, edx
je 0x50217c
lea eax, [ebp - 0x114]
push eax
push str.sub__s
call fcn.005190c0
add esp, 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3d0], esp
lea edx, [ebp - 0x114]
push edx
call fcn.0044b280
call fcn.00502040
add esp, 0x18
jmp 0x502607
xor eax, eax
je 0x5021b8
mov ecx, dword [ebp - 0x3b4]
push ecx
push 0x68a49c
call fcn.005190c0
add esp, 8
mov edx, dword [ebp - 0x3b4]
push edx
lea ecx, [ebp - 0x248]
call fcn.0044b280
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3b4]
push eax
push 0x68a4a8
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x260]
push edx
call fcn.004b31b0
add esp, 0xc
mov dword [ebp - 0x3c4], eax
mov eax, dword [ebp - 0x3c4]
mov dword [ebp - 0x3c8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3c8]
push ecx
lea edx, [ebp - 0x230]
push edx
call fcn.004535b0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x260]
call fcn.0044bc10
mov byte [ebp - 0x3aa], 0x2f
mov byte [ebp - 0x3ab], 0x5c
lea eax, [ebp - 0x3aa]
push eax
lea ecx, [ebp - 0x3ab]
push ecx
lea edx, [ebp - 0x3d4]
push edx
lea ecx, [ebp - 0x230]
call fcn.005017e0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x3d8]
push ecx
lea ecx, [ebp - 0x230]
call fcn.005017a0
mov edx, dword [eax]
push edx
call fcn.00503f20
add esp, 0x10
xor eax, eax
je 0x502293
lea ecx, [ebp - 0x230]
call fcn.0044d5d0
push eax
push 0x68a4ac
call fcn.005190c0
add esp, 8
push fcn.006197f2
lea ecx, [ebp - 0x3dc]
push ecx
lea ecx, [ebp - 0x248]
call fcn.005017a0
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x3e0]
push eax
lea ecx, [ebp - 0x248]
call fcn.005017e0
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x3e4]
push edx
lea ecx, [ebp - 0x248]
call fcn.005017a0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.005015d0
add esp, 0x14
xor edx, edx
je 0x502303
lea ecx, [ebp - 0x248]
call fcn.0044d5d0
push eax
push str.verify__s
call fcn.005190c0
add esp, 8
mov byte [ebp - 0x3a2], 0
push 0x7931d0
call fcn.00449d30
add esp, 4
mov dword [ebp - 0x3a8], eax
push 0x7931d0
call fcn.00503f10
add esp, 4
mov dword [ebp - 0x3cc], eax
jmp 0x502341
mov eax, dword [ebp - 0x3a8]
add eax, 0x20
mov dword [ebp - 0x3a8], eax
mov ecx, dword [ebp - 0x3a8]
cmp ecx, dword [ebp - 0x3cc]
jae 0x502594
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp - 0x3a8]
call fcn.0045f570
test eax, eax
jne 0x50258f
xor eax, eax
je 0x502396
lea ecx, [ebp - 0x248]
call fcn.0044d5d0
push eax
mov ecx, dword [ebp - 0x3a8]
call fcn.0044d5d0
push eax
push 0x68a4c0
call fcn.005190c0
add esp, 0xc
lea ecx, [ebp - 0x230]
call fcn.0044d5d0
push eax
call fcn.0051f6a0
add esp, 4
mov dword [ebp - 0x3b8], eax
mov ecx, dword [ebp - 0x380]
mov dword [ebp - 0x3bc], ecx
mov edx, dword [ebp - 0x3a8]
mov eax, dword [edx + 0x18]
cmp eax, dword [ebp - 0x3bc]
je 0x50246c
xor ecx, ecx
je 0x5023f3
mov edx, dword [ebp - 0x3bc]
push edx
mov eax, dword [ebp - 0x3a8]
mov ecx, dword [eax + 0x18]
push ecx
push 0x68a4d0
call fcn.005190c0
add esp, 0xc
mov byte [ebp - 0x3a1], 1
mov edx, 1
test edx, edx
je 0x502423
lea ecx, [ebp - 0x230]
call fcn.0044d5d0
push eax
mov eax, dword [ebp - 0x3bc]
push eax
push 0x68a4e4
call fcn.005190c0
add esp, 0xc
mov cl, byte [ebp - 0x3a1]
mov byte [ebp - 0x3ac], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.0044bc10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.0044bc10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0044bc10
mov al, byte [ebp - 0x3ac]
jmp 0x502651
mov edx, dword [ebp - 0x3a8]
mov eax, dword [edx + 0x1c]
cmp eax, dword [ebp - 0x3b8]
je 0x502517
xor ecx, ecx
je 0x5024a3
mov edx, dword [ebp - 0x3b8]
push edx
mov eax, dword [ebp - 0x3a8]
mov ecx, dword [eax + 0x1c]
push ecx
push 0x68a4fc
call fcn.005190c0
add esp, 0xc
mov byte [ebp - 0x3a1], 1
mov edx, 1
test edx, edx
je 0x5024d3
lea ecx, [ebp - 0x230]
call fcn.0044d5d0
push eax
mov eax, dword [ebp - 0x3b8]
push eax
push 0x68a510
call fcn.005190c0
add esp, 0xc
mov cl, byte [ebp - 0x3a1]
mov byte [ebp - 0x3ad], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.0044bc10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.0044bc10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0044bc10
mov al, byte [ebp - 0x3ad]
jmp 0x502651
xor edx, edx
je 0x502539
mov eax, dword [ebp - 0x3bc]
push eax
mov ecx, dword [ebp - 0x3a8]
mov edx, dword [ecx + 0x18]
push edx
push 0x68a528
call fcn.005190c0
add esp, 0xc
xor eax, eax
je 0x50255b
mov ecx, dword [ebp - 0x3b8]
push ecx
mov edx, dword [ebp - 0x3a8]
mov eax, dword [edx + 0x1c]
push eax
push 0x68a53c
call fcn.005190c0
add esp, 0xc
xor ecx, ecx
je 0x502586
mov edx, dword [ebp - 0x3b8]
push edx
mov eax, dword [ebp - 0x3bc]
push eax
lea ecx, [ebp - 0x230]
call fcn.0044d5d0
push eax
push str.___s____u___u_
call fcn.005190c0
add esp, 0x10
mov byte [ebp - 0x3a2], 1
jmp 0x502594
jmp 0x502332
movzx ecx, byte [ebp - 0x3a2]
test ecx, ecx
jne 0x5025bc
xor edx, edx
je 0x5025bc
lea ecx, [ebp - 0x248]
call fcn.0044d5d0
push eax
push 0x68a564
call fcn.005190c0
add esp, 8
xor eax, eax
je 0x5025e9
movzx ecx, byte [ebp - 0x3a2]
push ecx
movzx edx, byte [ebp - 0x3a1]
push edx
lea ecx, [ebp - 0x248]
call fcn.0044d5d0
push eax
push str.skipping_file__s__hack__u__found__u_
call fcn.005190c0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.0044bc10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.0044bc10
lea eax, [ebp - 0x3a0]
push eax
mov ecx, dword [ebp - 0x3c0]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x5020df
mov edx, dword [ebp - 0x3c0]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0x3a1]
mov byte [ebp - 0x3ae], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0044bc10
mov al, byte [ebp - 0x3ae]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c81cf
mov esp, ebp
pop ebp
ret