Function at 0x4392c0
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6071
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov al, byte [edi]
test al, al
jne 0x4395b8
cmp dword [edi + 0x2a0], 0
je 0x4397a5
test al, al
jne 0x4395b8
mov ecx, dword [edi + 0x2a0]
xor eax, eax
add ecx, dword [edi + 0x29c]
mov edx, dword [edi + 0x290]
test edx, edx
je 0x439332
mov edx, dword [edx]
test edx, edx
je 0x439332
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x439349
mov eax, dword [eax]
test eax, eax
je 0x439349
mov eax, dword [eax]
test eax, eax
je 0x439349
mov eax, dword [eax]
jmp 0x43934b
xor eax, eax
mov ecx, dword [eax + 8]
lea ebx, [edi + 0x258]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
cmp ebx, eax
je 0x43936d
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.004030af
mov ecx, dword [edi + 0x29c]
mov eax, dword [edi + 0x2a0]
dec ecx
add eax, ecx
mov ecx, dword [edi + 0x298]
dec ecx
and ecx, eax
mov eax, dword [edi + 0x294]
mov esi, dword [eax + ecx*4]
cmp dword [esi + 0x14], 8
jb 0x43939e
push dword [esi]
call fcn.0047b56e
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
dec dword [edi + 0x2a0]
jne 0x4393bf
mov dword [edi + 0x29c], eax
mov esi, dword [ebx + 0x10]
mov ecx, 7
mov dword [ebp - 0x1c], eax
xor eax, eax
mov word [ebp - 0x2c], ax
cmp esi, 0xffffffff
mov eax, 0xffffffff
mov dword [ebp - 0x18], ecx
cmova esi, eax
lea eax, [ebp - 0x2c]
cmp eax, ebx
jne 0x439415
test esi, esi
jne 0x4397bf
xor eax, eax
mov dword [ebp - 0x1c], esi
mov word [ebp + esi*2 - 0x2c], ax
cmp dword [ebp - 0x1c], eax
ja 0x43948e
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
jmp 0x43948e
cmp esi, 0x7ffffffe
ja 0x4397c9
cmp esi, ecx
jbe 0x439435
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403329
mov ecx, dword [ebp - 0x18]
jmp 0x439442
test esi, esi
jne 0x439444
xor eax, eax
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
test esi, esi
setne al
test al, al
je 0x43948e
cmp dword [ebx + 0x14], 8
jb 0x439453
mov ebx, dword [ebx]
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x2c]
cmp ecx, 8
cmovae eax, edx
mov dword [ebp - 0x78], eax
test esi, esi
je 0x43947c
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp - 0x78]
call fcn.00481c00
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov edx, dword [ebp - 0x2c]
cmp ecx, 8
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x2c]
cmovae eax, edx
xor ecx, ecx
mov word [eax + esi*2], cx
sub esp, 8
cmp dword [edi + 0x288], 0
jne 0x4394ab
mov eax, esp
mov dword [eax], 0x4b9948
mov dword [eax + 4], 1
jmp 0x4394cf
cmp dword [edi + 0x28c], 8
mov edx, esp
jb 0x4394be
mov ecx, dword [edi + 0x278]
jmp 0x4394c4
lea ecx, [edi + 0x278]
mov dword [edx], ecx
mov eax, dword [edi + 0x288]
mov dword [edx + 4], eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004307e0
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x4394ec
push 0xffffffffffffffff
push 0
push eax
call fcn.004030af
cmp dword [ebp - 0x60], 8
jb 0x4394fd
push dword [ebp - 0x74]
call fcn.0047b56e
add esp, 4
cmp dword [0x4d90d8], 0
jne 0x439562
push 0x44
call fcn.0047b5be
add esp, 4
test eax, eax
je 0x43951f
mov ecx, eax
call fcn.0042f480
mov esi, eax
jmp 0x439521
xor esi, esi
mov ecx, esi
xor eax, eax
mov edx, 0x4d90d8
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x439562
test esi, esi
je 0x439562
cmp dword [esi + 0x40], 0x10
jb 0x439547
push dword [esi + 0x2c]
call fcn.0047b56e
add esp, 4
mov dword [esi + 0x40], 0xf
mov dword [esi + 0x3c], 0
push esi
mov byte [esi + 0x2c], 0
call fcn.0047b56e
add esp, 4
mov eax, dword [0x4d90d8]
lea ebx, [edi + 4]
cmp dword [eax], 4
lea eax, [ebp - 0x2c]
jl 0x43958c
cmp dword [ebp - 0x18], 8
push 2
cmovae eax, dword [ebp - 0x2c]
push 0
push 0
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x43959c
cmp dword [ebp - 0x18], 8
push ebx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp dword [ebp - 0x18], 8
mov dword [edi + 0x254], eax
mov byte [edi], 1
jb 0x4395e2
push dword [ebp - 0x2c]
call fcn.0047b56e
add esp, 4
jmp 0x4395e2
lea ebx, [edi + 4]
push ebx
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4395e2
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
cmp dword [edi + 0x254], 0xffffffff
jne 0x439691
xor eax, eax
mov byte [edi], 0
mov word [ebp - 0x5c], ax
lea esi, [edi + 0x278]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
cmp esi, eax
je 0x4392f3
cmp dword [esi + 0x14], 8
jb 0x439627
push dword [esi]
call fcn.0047b56e
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x48], 8
jae 0x439667
mov eax, dword [ebp - 0x4c]
inc eax
je 0x439680
add eax, eax
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.0047aad0
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x14], eax
jmp 0x4392f3
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x14], eax
jmp 0x4392f3
sub esp, 8
lea esi, [edi + 0x30]
mov edx, esp
mov dword [edx], esi
test esi, esi
jne 0x4396a3
xor ecx, ecx
jmp 0x4396c5
cmp word [esi], 0
jne 0x4396ad
xor ecx, ecx
jmp 0x4396c5
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x78], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4396b5
sub ecx, dword [ebp - 0x78]
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x44]
call fcn.0042ffa0
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.004453c0
test al, al
jne 0x43978b
sub esp, 8
mov ecx, esp
mov dword [ecx], esi
test esi, esi
je 0x43970f
cmp word [esi], 0
jne 0x4396f8
xor esi, esi
jmp 0x43970f
lea edx, [esi + 2]
jmp 0x439700
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x439700
sub esi, edx
sar esi, 1
lea eax, [ebp - 0x74]
mov dword [ecx + 4], esi
push eax
lea ecx, [edi + 0x258]
call fcn.004307e0
lea ecx, [ebp - 0x44]
cmp ecx, eax
je 0x439732
push 0xffffffffffffffff
push 0
push eax
call fcn.004030af
cmp dword [ebp - 0x60], 8
jb 0x439743
push dword [ebp - 0x74]
call fcn.0047b56e
add esp, 4
test byte [ebx], 0x10
je 0x439782
cmp byte [edi + 0x270], 0
je 0x439779
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x439779
lea eax, [ebp - 0x44]
push eax
lea ecx, [edi + 0x290]
call fcn.00439830
test byte [edi + 0x274], 2
jmp 0x439789
test byte [edi + 0x274], 1
jne 0x4397d3
cmp dword [ebp - 0x30], 8
jb 0x4392f3
push dword [ebp - 0x44]
call fcn.0047b56e
add esp, 4
jmp 0x4392f3
mov ecx, dword [ebp - 0x7c]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
mov eax, ecx
jmp 0x43980a
push str.invalid_string_position
call fcn.0047a283
push str.string_too_long
call fcn.0047a255
mov ebx, dword [ebp - 0x7c]
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [ebp - 0x44]
push eax
call fcn.004030af
cmp dword [ebp - 0x30], 8
jb 0x439808
push dword [ebp - 0x44]
call fcn.0047b56e
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 4