Function at 0x556360
Capabilities:
Enumerate files on windows

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x2bc
mov eax, dword [ecx + 8]
movzx ecx, byte [ecx + 0x10]
mov esi, dword [edi]
mov edi, dword [edi + 4]
cmp eax, 0xffffffff
mov byte [ebp - 0x290], cl
je 0x5564d4
cmp byte [ebp - 0x290], 0
je 0x5565c0
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0xc]
add eax, 1
mov edx, dword [ecx + 8]
mov dword [ebp - 0x290], eax
mov dword [ebx + 0x14], eax
mov eax, dword [ecx + 0xc]
sub eax, edx
cmp dword [ebp - 0x290], eax
jge 0x5565a0
mov eax, dword [ebp - 0x290]
add eax, edx
lea edx, [ecx + eax*4 + 0x10]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x280], ecx
mov eax, dword [ecx]
add eax, 1
cmp eax, 1
ja 0x556940
lea ebx, [ebp - 0x280]
mov dword [esp], edx
mov ecx, ebx
call fcn.005aceb0
sub esp, 4
lea ecx, [ebp - 0x278]
mov dword [esp], ebx
call fcn.0050fe40
mov edx, dword [ebp - 0x278]
mov eax, dword [esi]
sub esp, 4
mov dword [esi], edx
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x278], eax
mov eax, dword [esi + 4]
mov dword [esi + 4], edx
movzx edx, word [ebp - 0x270]
mov dword [ebp - 0x274], eax
mov word [esi + 8], dx
movzx edx, word [ebp - 0x26e]
mov word [esi + 0xa], dx
movzx edx, word [ebp - 0x26c]
mov word [esi + 0xc], dx
mov edx, dword [eax]
test edx, edx
je 0x556780
cmp edx, 0xffffffff
je 0x55646a
lock sub dword [eax], 1
je 0x556780
mov eax, dword [ebp - 0x278]
mov edx, dword [eax]
test edx, edx
je 0x5567ae
cmp edx, 0xffffffff
je 0x55648f
lock sub dword [eax], 1
mov eax, dword [ebp - 0x278]
je 0x5567ae
mov eax, dword [ebp - 0x280]
mov edx, dword [eax]
test edx, edx
je 0x5567d6
cmp edx, 0xffffffff
je 0x5564b4
lock sub dword [eax], 1
mov eax, dword [ebp - 0x280]
je 0x5567d6
mov dword [edi + 0x10], 0x10
or dword [edi + 4], 0x440000
or dword [edi], 0x560000
mov byte [ebp - 0x290], 1
jmp 0x5565a7
test cl, cl
jne 0x5563a1
lea eax, [ebp - 0x268]
mov dword [esp], eax
call fcn.00574450
mov eax, dword [ebp - 0x268]
cmp dword [0x8b3b38], eax
je 0x5569e0
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0
movzx edx, byte [ebx + 0x18]
mov ecx, ebx
mov dword [ebp - 0x294], edx
call fcn.00665e50
mov ecx, dword [ebp - 0x298]
mov edx, dword [ebp - 0x294]
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x268]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x29c]
mov dword [esp + 4], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
sub esp, 0x18
cmp eax, 0xffffffff
mov dword [ebx + 8], eax
jne 0x5565da
mov dword [esp + 8], 1
mov dword [esp], 8
mov ecx, ebx
mov dword [esp + 4], str._UNC_
call fcn.00663390
sub esp, 0xc
test al, al
jne 0x556a17
cmp dword [ebx + 8], 0xffffffff
movzx eax, byte [ebx + 0x10]
jne 0x5565de
test al, al
jne 0x5567f3
mov byte [ebp - 0x290], 0
movzx eax, byte [ebp - 0x290]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret 8
lea edx, [ebp - 0x268]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x5565a0
movzx eax, byte [ebx + 0x10]
test al, al
jne 0x5567f3
lea ecx, [ebp - 0x284]
lea eax, [ebp - 0x23c]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x294], ecx
call fcn.005b01a0
mov edx, dword [ebx + 4]
mov dword [ebp - 0x280], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x556950
mov eax, dword [ebp - 0x294]
lea ebx, [ebp - 0x280]
mov ecx, ebx
mov dword [esp], eax
call fcn.005aceb0
sub esp, 4
lea ecx, [ebp - 0x278]
mov dword [esp], ebx
call fcn.0050fe40
mov edx, dword [ebp - 0x278]
mov eax, dword [esi]
sub esp, 4
mov dword [esi], edx
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x278], eax
mov eax, dword [esi + 4]
mov dword [esi + 4], edx
movzx edx, word [ebp - 0x270]
mov dword [ebp - 0x274], eax
mov word [esi + 8], dx
movzx edx, word [ebp - 0x26e]
mov word [esi + 0xa], dx
movzx edx, word [ebp - 0x26c]
mov word [esi + 0xc], dx
mov edx, dword [eax]
test edx, edx
je 0x556850
cmp edx, 0xffffffff
je 0x5566a9
lock sub dword [eax], 1
je 0x556850
mov eax, dword [ebp - 0x278]
mov edx, dword [eax]
test edx, edx
je 0x556830
cmp edx, 0xffffffff
je 0x5566ce
lock sub dword [eax], 1
mov eax, dword [ebp - 0x278]
je 0x556830
mov eax, dword [ebp - 0x280]
mov edx, dword [eax]
test edx, edx
je 0x556810
cmp edx, 0xffffffff
je 0x5566f3
lock sub dword [eax], 1
mov eax, dword [ebp - 0x280]
je 0x556810
pxor xmm0, xmm0
mov ecx, dword [ebp - 0x294]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x30], 0
movups xmmword [edi + 0x10], xmm0
movups xmmword [edi + 0x20], xmm0
mov dword [esp + 8], 1
mov dword [esp], 4
mov dword [esp + 4], str..lnk
call fcn.00666fa0
sub esp, 0xc
test al, al
je 0x556890
mov eax, dword [ebp - 0x284]
mov edx, dword [eax]
test edx, edx
je 0x556873
cmp edx, 0xffffffff
je 0x556773
lock sub dword [eax], 1
mov eax, dword [ebp - 0x284]
je 0x556873
mov byte [ebp - 0x290], 1
jmp 0x5565a7
mov eax, dword [ebp - 0x274]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
mov eax, dword [ebp - 0x278]
mov edx, dword [eax]
test edx, edx
jne 0x55647a
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 2
call fcn.004a4c50
mov eax, dword [ebp - 0x280]
mov edx, dword [eax]
test edx, edx
jne 0x55649f
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x5564b4
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x290], eax
mov edx, dword [ecx + 8]
jmp 0x5563c7
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x5566f3
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x5566ce
mov eax, dword [ebp - 0x274]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x5566a9
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x556773
mov eax, dword [ebp - 0x268]
mov esi, dword [edi + 4]
test al, 2
mov dword [edi + 0x10], eax
je 0x5568a9
or esi, 0x100000
mov dword [edi + 4], esi
test al, 0x10
mov edx, dword [edi]
je 0x556960
mov ecx, dword [ebp - 0x264]
mov ebx, dword [ebp - 0x260]
or esi, 0x440000
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], ebx
mov ecx, dword [ebp - 0x25c]
mov ebx, dword [ebp - 0x258]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], ebx
mov ecx, dword [ebp - 0x254]
mov ebx, dword [ebp - 0x250]
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ebx
or edx, 0x2770000
and esi, 0xfffeffff
test ah, 4
mov dword [edi], edx
mov dword [edi + 4], esi
je 0x55674e
cmp dword [ebp - 0x244], 0xa000000c
jne 0x55674e
or esi, 0x10000
mov dword [edi + 4], esi
jmp 0x55674e
lock add dword [ecx], 1
jmp 0x5563ea
lock add dword [edx], 1
jmp 0x556623
mov ecx, dword [ebp - 0x264]
mov ebx, dword [ebp - 0x260]
or esi, 0x420000
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 0x25c]
mov dword [edi + 0x18], ebx
mov ebx, dword [ebp - 0x258]
mov dword [edi + 0x24], ecx
mov ecx, dword [ebp - 0x254]
mov dword [edi + 0x28], ebx
mov ebx, dword [ebp - 0x250]
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x24c]
mov dword [edi + 0x30], ebx
mov dword [edi + 0x20], ebx
mov ebx, ecx
mov ecx, 0
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x28c], ebx
xor ebx, ebx
mov ecx, dword [ebp - 0x248]
add ecx, dword [ebp - 0x290]
adc ebx, dword [ebp - 0x28c]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebx
jmp 0x556903
lea eax, [ebp - 0x268]
mov dword [esp + 4], 0x8b3b38
mov dword [esp], eax
call fcn.00574410
test eax, eax
js 0x5564fc
mov dword [ebp - 0x29c], 1
mov dword [ebp - 0x298], 2
jmp 0x556510
mov eax, 0x5c
lea ecx, [ebp - 0x288]
mov dword [esp + 0xc], 1
mov word [esp + 4], ax
mov dword [esp + 8], 1
mov dword [esp], ebx
call fcn.00667730
mov eax, dword [ebp - 0x288]
sub esp, 0x10
cmp dword [eax + 4], 4
je 0x556a8a
mov edx, dword [eax]
test edx, edx
je 0x556a6d
cmp edx, 0xffffffff
je 0x55658e
lock sub dword [eax], 1
mov eax, dword [ebp - 0x288]
jne 0x55658e
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc
mov dword [esp], eax
call fcn.004a4c50
jmp 0x55658e
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x280], 2
mov dword [ebp - 0x27c], 0x745afe
lea eax, [eax + edx + 0x18]
lea edx, [ebp - 0x280]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x284]
mov dword [ebp - 0x278], edx
mov ecx, eax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x294], ecx
mov dword [esp], eax
call fcn.0061b850
mov eax, dword [ebp - 0x294]
lea ecx, [ebx + 0xc]
sub esp, 4
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.005287c0
mov edx, dword [ebp - 0x284]
mov ecx, dword [edx]
test ecx, ecx
je 0x556b26
cmp ecx, 0xffffffff
je 0x556b02
lock sub dword [edx], 1
je 0x556b20
test al, al
je 0x556b15
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 8]
cmp dword [eax + 0xc], ecx
je 0x556b4d
mov byte [ebx + 0x10], 1
mov eax, dword [ebp - 0x288]
jmp 0x556a4e
mov edx, dword [ebp - 0x284]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
mov byte [ebp - 0x294], al
call fcn.004a4c50
movzx eax, byte [ebp - 0x294]
jmp 0x556b02
lea ecx, [ebp - 0x288]
call fcn.005b3410
jmp 0x5565a7