Function at 0x404f40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b9c00
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x294], 0
call fcn.00498c2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404fa6
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x294], 1
mov ecx, dword [esp + 0x29c]
push 0x5c
push ecx
call fcn.0049ebc0
add esp, 8
test eax, eax
jne 0x404fd9
or esi, 0xffffffff
jmp 0x404fe4
sub eax, dword [esp + 0x29c]
sar eax, 1
mov esi, eax
lea edx, [esp + 0x29c]
push 0x4c395c
push edx
call fcn.00408510
add esp, 8
test al, al
je 0x405010
push 0
push 0x4c3af8
lea ecx, [esp + 0x2a4]
call fcn.00401fa0
cmp esi, 0xffffffff
je 0x405074
test esi, esi
je 0x405074
mov eax, dword [esp + 0x29c]
mov eax, dword [eax - 0xc]
sub eax, esi
dec eax
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2a4]
call fcn.004083b0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x298], 2
call fcn.00408830
mov byte [esp + 0x294], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405085
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405085
lea ecx, [esp + 0x29c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00408830
push 1
push 0x4c395c
lea ecx, [esp + 0x2a4]
call fcn.00402110
push 0x4c3960
lea edx, [esp + 0x2a0]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00401c00
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4050e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x29c]
push ecx
push str.Processing__s_r_n
call fcn.00477b80
add esp, 8
cmp esi, 0xffffffff
je 0x405186
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [esp + 0x38], 0x10
je 0x405137
lea edx, [esp + 0x64]
push 0x4c3950
push edx
call fcn.0049de7f
add esp, 8
test eax, eax
je 0x405173
lea eax, [esp + 0x64]
push 0x4c3954
push eax
call fcn.0049de7f
add esp, 8
jmp 0x405173
lea ecx, [esp + 0x64]
push ecx
push str.Processing_file__s_r_n
call fcn.00477b80
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
add esp, 8
push 0
push edx
push eax
push ecx
lea edx, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.004019b0
mov eax, dword [esp + 0x2ac]
push eax
call fcn.004054e0
lea ecx, [esp + 0x38]
push ecx
push esi
call ebx
test eax, eax
jne 0x405106
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x838], 0
je 0x40545a
cmp dword [edi + 0x834], 0
je 0x40545a
mov eax, dword [edi + 0x780]
test eax, eax
je 0x40545a
jmp 0x4051b4
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov eax, dword [eax + 8]
lea esi, [eax + 4]
push 4
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x24], edx
call fcn.004083b0
mov byte [esp + 0x294], 3
mov ecx, dword [esp + 0x18]
push str..snp
push ecx
call fcn.0049de7f
add esp, 8
test eax, eax
jne 0x405427
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
add eax, 0xffffffdc
push eax
push 0x11
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.00408300
mov byte [esp + 0x294], 4
mov ebp, dword [edi + 0x780]
test ebp, ebp
je 0x4053fb
mov eax, ebp
mov eax, dword [eax + 8]
mov ecx, dword [eax + 4]
lea esi, [eax + 4]
mov eax, dword [ecx - 0xc]
add eax, 0xfffffffc
push eax
lea edx, [esp + 0x18]
mov edi, ebp
mov ebp, dword [ebp]
push edx
mov ecx, esi
call fcn.00408430
push 4
lea eax, [esp + 0x34]
push eax
mov ecx, esi
mov byte [esp + 0x29c], 5
call fcn.004083b0
mov bl, 6
mov byte [esp + 0x294], bl
mov ecx, dword [esp + 0x30]
push 0x4c40d0
push ecx
call fcn.0049de7f
add esp, 8
test eax, eax
jne 0x4053a3
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0x10
jle 0x4052cc
push 0x10
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.00408430
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x298], 7
call fcn.00408830
mov byte [esp + 0x294], bl
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4052cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x10
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00408430
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x298], 8
call fcn.00408830
mov byte [esp + 0x294], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405315
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x14]
call fcn.00408710
mov ebx, eax
call fcn.00408790
lea ebx, [esp + 0x28]
call fcn.00408710
mov ebx, eax
call fcn.00408790
mov ecx, dword [esp + 0x28]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x404f9c
mov eax, dword [esp + 0x14]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405376
test dx, dx
je 0x405372
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405376
add eax, 4
add ecx, 4
test dx, dx
jne 0x405350
xor eax, eax
jmp 0x40537b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4053a3
mov eax, dword [esp + 0x1c]
cmp edi, eax
jne 0x405392
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov esi, dword [esp + 0x24]
add esi, 0x77c
mov eax, edi
call fcn.00481350
mov byte [esp + 0x294], 5
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4053cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jne 0x40521d
mov byte [esp + 0x294], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405423
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x24]
mov byte [esp + 0x294], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40544f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x1c], 0
jne 0x4051b0
mov byte [esp + 0x294], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405482
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x294], 0xffffffff
mov eax, dword [esp + 0x29c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.0049dc2a
add esp, 0x284
ret 4