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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x4a22d0]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov al, byte [esi]
test al, al
jne 0x41d822
cmp dword [esi + 0x2a0], 0
je 0x41da56
test al, al
jne 0x41d822
mov ecx, dword [esi + 0x2a0]
xor eax, eax
add ecx, dword [esi + 0x29c]
mov edx, dword [esi + 0x290]
test edx, edx
je 0x41d63f
mov edx, dword [edx]
test edx, edx
je 0x41d63f
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x41d656
mov eax, dword [eax]
test eax, eax
je 0x41d656
mov eax, dword [eax]
test eax, eax
je 0x41d656
mov eax, dword [eax]
jmp 0x41d658
xor eax, eax
mov ecx, dword [eax + 8]
lea ebx, [esi + 0x258]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
cmp ebx, eax
je 0x41d67a
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00407bd0
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 edi, dword [eax + ecx*4]
cmp dword [edi + 0x14], 8
jb 0x41d6ab
push dword [edi]
call fcn.0046d967
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
dec dword [esi + 0x2a0]
jne 0x41d6cc
mov dword [esi + 0x29c], eax
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x40], 7
push 0xffffffffffffffff
push eax
push ebx
mov word [esp + 0x38], ax
call fcn.00407bd0
sub esp, 8
cmp dword [esi + 0x288], 0
jne 0x41d709
mov eax, esp
mov dword [eax], 0x49ca6c
mov dword [eax + 4], 1
jmp 0x41d72d
cmp dword [esi + 0x28c], 8
mov edx, esp
jb 0x41d71c
mov ecx, dword [esi + 0x278]
jmp 0x41d722
lea ecx, [esi + 0x278]
mov dword [edx], ecx
mov eax, dword [esi + 0x288]
mov dword [edx + 4], eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x38]
call fcn.00405ea0
lea ecx, [esp + 0x2c]
cmp ecx, eax
je 0x41d74d
push 0xffffffffffffffff
push 0
push eax
call fcn.00407bd0
cmp dword [esp + 0x70], 8
jb 0x41d760
push dword [esp + 0x5c]
call fcn.0046d967
add esp, 4
cmp dword [0x4a6868], 0
jne 0x41d7c5
push 0x44
call fcn.0046d916
add esp, 4
test eax, eax
je 0x41d782
mov ecx, eax
call fcn.00411470
mov edi, eax
jmp 0x41d784
xor edi, edi
mov ecx, edi
xor eax, eax
mov edx, 0x4a6868
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41d7c5
test edi, edi
je 0x41d7c5
cmp dword [edi + 0x40], 0x10
jb 0x41d7aa
push dword [edi + 0x2c]
call fcn.0046d967
add esp, 4
mov dword [edi + 0x40], 0xf
mov dword [edi + 0x3c], 0
push edi
mov byte [edi + 0x2c], 0
call fcn.0046d967
add esp, 4
mov eax, dword [0x4a6868]
lea ebx, [esi + 4]
cmp dword [eax], 4
lea eax, [esp + 0x2c]
jl 0x41d7f2
cmp dword [esp + 0x40], 8
push 2
cmovae eax, dword [esp + 0x30]
push 0
push 0
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x41d804
cmp dword [esp + 0x40], 8
push ebx
cmovae eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp dword [esp + 0x40], 8
mov dword [esi + 0x254], eax
mov byte [esi], 1
jb 0x41d84c
push dword [esp + 0x2c]
call fcn.0046d967
add esp, 4
jmp 0x41d84c
lea ebx, [esi + 4]
push ebx
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41d84c
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
cmp dword [esi + 0x254], 0xffffffff
jne 0x41d8f1
xor eax, eax
mov byte [esi], 0
mov word [esp + 0x44], ax
lea edi, [esi + 0x278]
lea eax, [esp + 0x44]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
cmp edi, eax
je 0x41d600
cmp dword [edi + 0x14], 8
jb 0x41d895
push dword [edi]
call fcn.0046d967
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov ecx, dword [esp + 0x58]
cmp ecx, 8
jae 0x41d8dc
mov eax, dword [esp + 0x54]
inc eax
je 0x41d8e2
add eax, eax
push eax
lea eax, [esp + 0x48]
push eax
push edi
call fcn.0046dc70
mov ecx, dword [esp + 0x64]
add esp, 0xc
mov eax, dword [esp + 0x54]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp 0x41d600
mov eax, dword [esp + 0x44]
mov dword [edi], eax
mov eax, dword [esp + 0x54]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp 0x41d600
lea edi, [esi + 0x30]
test edi, edi
jne 0x41d8fc
xor ecx, ecx
jmp 0x41d91f
cmp word [edi], 0
jne 0x41d906
xor ecx, ecx
jmp 0x41d91f
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x41d910
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d910
sub ecx, edx
sar ecx, 1
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
test ecx, ecx
jne 0x41d945
mov dword [esp + 0x24], eax
mov word [esp + 0x14], ax
jmp 0x41d950
push ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.004085c0
push 1
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
lea ecx, [esp + 0x20]
call fcn.00407d20
cmp eax, 0xffffffff
je 0x41d97b
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call fcn.00406b10
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.0041d1e0
test al, al
jne 0x41da3a
sub esp, 8
mov ecx, esp
mov dword [ecx], edi
test edi, edi
je 0x41d9b6
cmp word [edi], 0
jne 0x41d9a4
xor edi, edi
jmp 0x41d9b6
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x41d9a7
sub edi, edx
sar edi, 1
lea eax, [esp + 0x64]
mov dword [ecx + 4], edi
push eax
lea ecx, [esi + 0x258]
call fcn.00405ea0
lea ecx, [esp + 0x14]
cmp ecx, eax
je 0x41d9db
push 0xffffffffffffffff
push 0
push eax
call fcn.00407bd0
cmp dword [esp + 0x70], 8
jb 0x41d9ee
push dword [esp + 0x5c]
call fcn.0046d967
add esp, 4
test byte [ebx], 0x10
je 0x41da31
cmp byte [esi + 0x270], 0
je 0x41da28
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x41da28
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x290]
call fcn.0041dae0
test byte [esi + 0x274], 2
jmp 0x41da38
test byte [esi + 0x274], 1
jne 0x41da83
cmp dword [esp + 0x28], 8
jb 0x41d600
push dword [esp + 0x14]
call fcn.0046d967
add esp, 4
jmp 0x41d600
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0xc]
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, [esp + 0x1c]
push eax
call fcn.00407bd0
cmp dword [esp + 0x28], 8
jb 0x41dabc
push dword [esp + 0x14]
call fcn.0046d967
add esp, 4
mov ecx, dword [esp + 0x74]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret 4