Function at 0x413310
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x573510]
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 0x413330
mov al, byte [edi]
xor ebx, ebx
test al, al
jne 0x4134b1
cmp dword [edi + 0x2b4], ebx
je 0x41368b
test al, al
jne 0x4134b1
lea esi, [edi + 0x298]
mov eax, esi
call fcn.00413730
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x258]
push eax
call fcn.00402d90
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x4133ba
mov ecx, dword [esi + 0x18]
lea eax, [eax + ecx - 1]
mov ecx, dword [esi + 0x14]
cmp ecx, eax
ja 0x413383
sub eax, ecx
mov edx, dword [esi + 0x10]
mov ebx, dword [edx + eax*4]
cmp dword [ebx + 0x18], 8
jb 0x41339b
mov eax, dword [ebx + 4]
push eax
call fcn.00455c1a
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 0x4133ba
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.00402d90
cmp dword [edi + 0x290], ebx
jne 0x413449
push 1
xor eax, eax
mov esi, 7
push 0x56d588
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
call fcn.0040ab20
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x3c]
call fcn.0040e6c0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402d90
cmp dword [ebp - 0x60], 8
jb 0x413432
mov eax, dword [ebp - 0x74]
push eax
call fcn.00455c1a
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 0x41347a
mov edx, dword [ebp - 0x58]
jmp 0x413471
lea eax, [edi + 0x27c]
push eax
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040e6c0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402d90
cmp dword [ebp - 0x60], 8
jb 0x41347a
mov edx, dword [ebp - 0x74]
push edx
call fcn.00455c1a
add esp, 4
mov ecx, dword [ebp - 0x38]
mov esi, 8
cmp dword [ebp - 0x24], esi
jae 0x41348a
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 0x4134dd
mov eax, dword [ebp - 0x38]
push eax
call fcn.00455c1a
add esp, 4
jmp 0x4134dd
mov ecx, dword [edi + 0x254]
lea eax, [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4134dd
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 0x413526
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.00402d90
cmp dword [ebp - 0x60], 8
jb 0x413330
mov edx, dword [ebp - 0x74]
push edx
call fcn.00455c1a
add esp, 4
jmp 0x413330
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 0x413540
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0040ab20
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.00402d90
cmp dword [ebp - 0x44], 8
jb 0x41358a
mov eax, dword [ebp - 0x58]
push eax
call fcn.00455c1a
add esp, 4
push edi
lea esi, [ebp - 0x20]
call fcn.0041b7e0
test al, al
je 0x4135b2
cmp dword [ebp - 8], 8
jb 0x413330
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00455c1a
add esp, 4
jmp 0x413330
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 0x4135d0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0040ab20
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [edi + 0x258]
call fcn.0040e6c0
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00402d90
mov ebx, 8
cmp dword [ebp - 0x60], ebx
jb 0x41361e
mov edx, dword [ebp - 0x74]
push edx
call fcn.00455c1a
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 0x41363f
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00455c1a
add esp, 4
test byte [edi + 4], 0x10
je 0x413668
cmp byte [edi + 0x274], 0
je 0x41365f
lea edx, [ebp - 0x20]
push edx
lea esi, [edi + 0x298]
call fcn.004137a0
xor esi, esi
test byte [edi + 0x278], 2
jmp 0x41366f
test byte [edi + 0x278], 1
jne 0x4136b1
cmp dword [ebp - 8], ebx
jb 0x413330
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00455c1a
add esp, 4
jmp 0x413330
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.0045633d
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.00402d90
cmp dword [ebp - 8], ebx
jb 0x4136e3
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00455c1a
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045633d
mov esp, ebp
pop ebp
ret 4