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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x57506c]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], eax
mov al, byte [esi]
mov ebx, 0x58bf34
test al, al
jne 0x41ba24
cmp dword [esi + 0x2a0], 0
je 0x41bc0a
test al, al
jne 0x41ba24
mov ecx, dword [esi + 0x2a0]
xor eax, eax
add ecx, dword [esi + 0x29c]
mov edx, dword [esi + 0x290]
test edx, edx
je 0x41b884
mov edx, dword [edx]
test edx, edx
je 0x41b884
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x41b89b
mov eax, dword [eax]
test eax, eax
je 0x41b89b
mov eax, dword [eax]
test eax, eax
je 0x41b89b
mov eax, dword [eax]
jmp 0x41b89d
xor eax, eax
mov ecx, dword [eax + 8]
lea edi, [esi + 0x258]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
cmp edi, eax
je 0x41b8bf
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00407b20
mov eax, dword [esi + 0x2a0]
mov ecx, dword [esi + 0x29c]
dec eax
add ecx, eax
mov eax, dword [esi + 0x298]
dec eax
and ecx, eax
mov eax, dword [esi + 0x294]
mov ecx, dword [eax + ecx*4]
call fcn.00401fe0
add dword [esi + 0x2a0], 0xffffffff
jne 0x41b8f8
mov dword [esi + 0x29c], 0
lea eax, [esp + 0x13]
push eax
lea ecx, [esp + 0x38]
call fcn.004086a0
xor eax, eax
mov dword [esp + 0x48], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call fcn.00407b20
sub esp, 8
cmp dword [esi + 0x288], 0
jne 0x41b947
mov eax, esp
mov dword [eax], 0x5640e0
mov dword [eax + 4], 1
jmp 0x41b96b
cmp dword [esi + 0x28c], 8
mov edx, esp
jb 0x41b95a
mov ecx, dword [esi + 0x278]
jmp 0x41b960
lea ecx, [esi + 0x278]
mov dword [edx], ecx
mov eax, dword [esi + 0x288]
mov dword [edx + 4], eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x40]
call fcn.00412da0
lea ecx, [esp + 0x34]
cmp ecx, eax
je 0x41b98b
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b20
lea ecx, [esp + 0x4c]
call fcn.00401fe0
cmp dword [0x58bf34], 0
jne 0x41b9d1
push 0x4c
call fcn.00469ca4
add esp, 4
mov ecx, eax
call fcn.0041d180
mov edi, eax
xor eax, eax
mov ecx, edi
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x41b9d1
test edi, edi
je 0x41b9d1
lea ecx, [edi + 0x34]
call fcn.00402090
push edi
call fcn.0048ac22
add esp, 4
mov eax, dword [0x58bf34]
lea ebx, [esi + 4]
cmp dword [eax], 4
lea eax, [esp + 0x34]
jl 0x41b9fe
cmp dword [esp + 0x48], 8
push 2
cmovae eax, dword [esp + 0x38]
push 0
push 0
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x41ba10
cmp dword [esp + 0x48], 8
push ebx
cmovae eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x34]
mov dword [esi + 0x254], eax
mov byte [esi], 1
call fcn.00401fe0
jmp 0x41ba4e
lea eax, [esi + 4]
push eax
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41ba4e
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
cmp dword [esi + 0x254], 0xffffffff
jne 0x41bab7
lea ecx, [esp + 0x4c]
mov byte [esi], 0
call fcn.0040ac90
mov ebx, eax
lea edi, [esi + 0x278]
cmp edi, ebx
je 0x41baa9
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x41ba82
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00403930
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x41ba9a
mov eax, dword [edi]
jmp 0x41ba9c
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push ebx
call fcn.00408310
lea ecx, [esp + 0x4c]
call fcn.00401fe0
jmp 0x41b840
lea edi, [esi + 0x30]
test edi, edi
jne 0x41bac2
xor ebx, ebx
jmp 0x41bae0
cmp word [edi], 0
jne 0x41bacc
xor ebx, ebx
jmp 0x41bae0
mov ebx, edi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x41bad1
sub ebx, ecx
sar ebx, 1
lea ecx, [esp + 0x1c]
call fcn.0040ac90
test ebx, ebx
jne 0x41bb06
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], ebx
cmovae eax, dword [esp + 0x1c]
xor ecx, ecx
mov word [eax], cx
jmp 0x41bb11
push ebx
push edi
lea ecx, [esp + 0x24]
call fcn.004077d0
push 1
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
lea ecx, [esp + 0x28]
call fcn.004137a0
cmp eax, 0xffffffff
je 0x41bb3c
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x24]
call fcn.00407d20
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0041bef0
test al, al
je 0x41bb5a
lea ecx, [esp + 0x1c]
call fcn.00401fe0
jmp 0x41b840
sub esp, 8
mov ecx, esp
mov dword [ecx], edi
test edi, edi
je 0x41bb81
cmp word [edi], 0
jne 0x41bb6f
xor edi, edi
jmp 0x41bb81
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x41bb72
sub edi, edx
sar edi, 1
lea eax, [esp + 0x54]
mov dword [ecx + 4], edi
push eax
lea ecx, [esi + 0x258]
call fcn.00412da0
lea ecx, [esp + 0x1c]
cmp ecx, eax
je 0x41bba6
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b20
lea ecx, [esp + 0x4c]
call fcn.00401fe0
test byte [esi + 4], 0x10
je 0x41bbf3
cmp byte [esi + 0x270], 0
je 0x41bbea
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x41bbea
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0x290]
call fcn.0041bd10
test byte [esi + 0x274], 2
jmp 0x41bbfa
test byte [esi + 0x274], 1
jne 0x41bc2b
lea ecx, [esp + 0x1c]
call fcn.00401fe0
jmp 0x41b840
mov ecx, dword [esp + 0x14]
call fcn.0040ac90
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x13]
push eax
mov ecx, ebx
call fcn.004086a0
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
cmp dword [ebx + 0x14], 8
jb 0x41bc53
mov eax, dword [ebx]
jmp 0x41bc55
mov eax, ebx
xor ecx, ecx
push 0xffffffffffffffff
mov word [eax], cx
lea eax, [esp + 0x20]
push ecx
push eax
mov ecx, ebx
call fcn.00407b20
lea ecx, [esp + 0x1c]
call fcn.00401fe0
mov ecx, dword [esp + 0x64]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret 4