Function at 0x40c400
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46bc67
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x491d88]
xor eax, esp
mov dword [esp + 0x18c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491d88]
xor eax, esp
push eax
lea eax, [esp + 0x1a4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1b4]
mov ebx, dword [esp + 0x1b8]
mov ebp, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
call fcn.00441227
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c46d
push 0x80004005
call fcn.00401110
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1ac], 0
call fcn.00441227
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c4a2
push 0x80004005
call fcn.00401110
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x4745b0
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b0], 1
call fcn.00404450
cmp dword [ebx + 0x18], 0x10
mov byte [esp + 0x1ac], 2
jb 0x40c4db
mov ecx, dword [ebx + 4]
jmp 0x40c4de
lea ecx, [ebx + 4]
mov edx, dword [eax]
push edx
push ecx
lea eax, [esp + 0x1c]
push 0x47345c
push eax
call fcn.00403c10
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x1ac], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c51c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x60]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x40c715
mov edi, dword [esp + 0x1c0]
cmp byte [esp + 0x8c], 0x2e
je 0x40c680
lea edx, [esp + 0x8c]
push edx
mov ecx, ebx
call fcn.00405780
push eax
lea eax, [esp + 0x20]
push 0x47345c
push eax
call fcn.00403c10
mov esi, dword [esp + 0x28]
add esp, 0x10
cmp dword [esp + 0x60], 0x10
mov eax, esi
lea ecx, [eax + 1]
jne 0x40c5f7
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40c595
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x4c]
call fcn.00403dd0
mov ecx, dword [esp + 0x1bc]
mov eax, dword [esp + 0x24]
push edi
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x1bc], 3
call fcn.0040b5d0
test eax, eax
sete bl
cmp dword [esp + 0x5c], 0x10
mov byte [esp + 0x1ac], 1
jb 0x40c678
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0042f9ca
add esp, 4
jmp 0x40c678
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40c610
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.00403dd0
mov eax, dword [esp + 0x24]
push edi
push 0
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x1bc], 4
call fcn.0040b5d0
test eax, eax
sete bl
cmp dword [esp + 0x40], 0x10
mov byte [esp + 0x1ac], 1
jb 0x40c663
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042f9ca
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
test bl, bl
jne 0x40c6ed
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x60]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c540
mov byte [esp + 0x1ac], al
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 0x40c6bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x1ac], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c6e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40c762
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Error_setting_Access_to_folder__s.__error___d
push 0x400
push 0x4932a8
call fcn.00401300
mov eax, dword [esp + 0x28]
add esp, 0x14
add eax, 0xfffffff0
jmp 0x40c718
lea eax, [edi - 0x10]
mov byte [esp + 0x1ac], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c739
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x1ac], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c760
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18c]
xor ecx, esp
call fcn.0045309e
add esp, 0x19c
ret 0x10