Function at 0x413100
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x576510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x40], eax
jmp 0x413120
mov al, byte [edi]
xor ebx, ebx
test al, al
jne 0x4132a1
cmp dword [edi + 0x2b4], ebx
je 0x41347b
test al, al
jne 0x4132a1
lea esi, [edi + 0x298]
mov eax, esi
call fcn.00413520
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x258]
push eax
call fcn.00402c50
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x4131aa
mov ecx, dword [esi + 0x18]
lea eax, [eax + ecx - 1]
mov ecx, dword [esi + 0x14]
cmp ecx, eax
ja 0x413173
sub eax, ecx
mov edx, dword [esi + 0x10]
mov ebx, dword [edx + eax*4]
cmp dword [ebx + 0x18], 8
jb 0x41318b
mov eax, dword [ebx + 4]
push eax
call fcn.00456e75
add esp, 4
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x14], 0
xor ecx, ecx
mov word [ebx + 4], cx
xor ebx, ebx
add dword [esi + 0x1c], 0xffffffff
jne 0x4131aa
mov dword [esi + 0x18], ecx
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x258]
xor edx, edx
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], dx
call fcn.00402c50
cmp dword [edi + 0x290], ebx
jne 0x413239
push 1
xor eax, eax
mov esi, 7
push 0x570288
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
call fcn.0040a9a0
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x3c]
call fcn.0040e590
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402c50
cmp dword [ebp - 0x60], 8
jb 0x413222
mov eax, dword [ebp - 0x74]
push eax
call fcn.00456e75
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], ebx
mov word [ebp - 0x74], cx
jb 0x41326a
mov edx, dword [ebp - 0x58]
jmp 0x413261
lea eax, [edi + 0x27c]
push eax
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040e590
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402c50
cmp dword [ebp - 0x60], 8
jb 0x41326a
mov edx, dword [ebp - 0x74]
push edx
call fcn.00456e75
add esp, 4
mov ecx, dword [ebp - 0x38]
mov esi, 8
cmp dword [ebp - 0x24], esi
jae 0x41327a
lea ecx, [ebp - 0x38]
lea eax, [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi + 0x254], eax
mov byte [edi], 1
cmp dword [ebp - 0x24], esi
jb 0x4132cd
mov eax, dword [ebp - 0x38]
push eax
call fcn.00456e75
add esp, 4
jmp 0x4132cd
mov ecx, dword [edi + 0x254]
lea eax, [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4132cd
mov edx, dword [edi + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
cmp dword [edi + 0x254], 0xffffffff
jne 0x413316
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x78]
xor eax, eax
push ecx
lea ecx, [edi + 0x27c]
mov byte [edi], 0
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], ebx
mov word [ebp - 0x74], ax
call fcn.00402c50
cmp dword [ebp - 0x60], 8
jb 0x413120
mov edx, dword [ebp - 0x74]
push edx
call fcn.00456e75
add esp, 4
jmp 0x413120
xor esi, esi
xor eax, eax
lea ebx, [edi + 0x30]
mov word [ebp - 0x58], ax
mov eax, ebx
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x413330
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0040a9a0
push 0xffffffffffffffff
xor ecx, ecx
push esi
lea edx, [ebp - 0x5c]
mov word [ebp - 0x1c], cx
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], esi
call fcn.00402c50
cmp dword [ebp - 0x44], 8
jb 0x41337a
mov eax, dword [ebp - 0x58]
push eax
call fcn.00456e75
add esp, 4
push edi
lea esi, [ebp - 0x20]
call fcn.0041b780
test al, al
je 0x4133a2
cmp dword [ebp - 8], 8
jb 0x413120
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00456e75
add esp, 4
jmp 0x413120
xor esi, esi
xor edx, edx
mov eax, ebx
mov word [ebp - 0x58], dx
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4133c0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0040a9a0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [edi + 0x258]
call fcn.0040e590
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00402c50
mov ebx, 8
cmp dword [ebp - 0x60], ebx
jb 0x41340e
mov edx, dword [ebp - 0x74]
push edx
call fcn.00456e75
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], esi
mov word [ebp - 0x74], ax
cmp dword [ebp - 0x44], ebx
jb 0x41342f
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00456e75
add esp, 4
test byte [edi + 4], 0x10
je 0x413458
cmp byte [edi + 0x274], 0
je 0x41344f
lea edx, [ebp - 0x20]
push edx
lea esi, [edi + 0x298]
call fcn.00413590
xor esi, esi
test byte [edi + 0x278], 2
jmp 0x41345f
test byte [edi + 0x278], 1
jne 0x4134a1
cmp dword [ebp - 8], ebx
jb 0x413120
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00456e75
add esp, 4
jmp 0x413120
mov eax, dword [ebp - 0x40]
pop edi
mov dword [eax + 0x14], ebx
xor ecx, ecx
pop esi
mov dword [eax + 0x18], 7
mov word [eax + 4], cx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045759d
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x40]
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x20]
xor edx, edx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], esi
push eax
mov ecx, edi
mov word [edi + 4], dx
call fcn.00402c50
cmp dword [ebp - 8], ebx
jb 0x4134d3
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00456e75
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045759d
mov esp, ebp
pop ebp
ret 4