Function at 0x41c140
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b409
mov eax, dword fs:[0]
push eax
sub esp, 0x6ac
mov eax, dword [0x55f3a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x6b4], ebx
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0x6b0], eax
mov dword [ebp - 0x6a4], eax
lea eax, [ebp - 0x218]
push eax
call fcn.004efd80
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x56d1e0]
mov dword [ebp - 0x6b8], ecx
cmp eax, dword [ecx + 4]
jle 0x41c202
push 0x56d1e0
call fcn.004af7b6
add esp, 4
cmp dword [0x56d1e0], 0xffffffff
jne 0x41c202
push 0x56d1e0
mov dword [0x56d1e4], 0
call fcn.004af76c
add esp, 4
xorps xmm0, xmm0
mov byte [ebp - 0x6a5], 0
movlpd qword [ebp - 0x220], xmm0
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
call fcn.00432a45
add esp, 4
mov dword [ebp - 4], 1
lea eax, [ebp - 0x220]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x6a5]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x228]
push eax
push 0x41d5c0
push 0x56d1e4
call fcn.00432c10
add esp, 0xc
test eax, eax
je 0x41c8de
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 2
push eax
call fcn.00432a7f
add esp, 4
lea eax, [ebp - 0x218]
push 0x56bc6c
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x464
lea eax, [ebp - 0x6a0]
push 0
push eax
call fcn.004efd80
mov eax, 0x5c
mov dword [ebp - 0x244], 0
add esp, 0xc
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0x240], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, 0x104
jge 0x41c852
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x674]
push 0x104
push eax
call fcn.004f7dc7
add esp, 0xc
push eax
call fcn.00405c50
add esp, 4
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x244], eax
cmp eax, 0xffffffff
je 0x41c88c
push 0
lea eax, [ebp - 0x450]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x41c382
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x41c375
cmp eax, 0xffffffff
je 0x41c375
push eax
call esi
mov dword [ebp - 0x244], 0
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41c852
lea eax, [ebp - 0x450]
push 0x5c
push eax
call fcn.004ef68a
mov esi, eax
lea eax, [ebp - 0x450]
push 0x2f
push eax
call fcn.004ef68a
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x41c3b3
test esi, esi
je 0x41c3ce
lea ecx, [ebp - 0x450]
test esi, esi
lea eax, [ebp - 0x450]
cmovne eax, esi
cmp ecx, eax
jb 0x41c3c9
xor eax, eax
mov word [ecx], ax
jmp 0x41c3ce
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebp - 0x6ac]
mov eax, 1
mov dword [ebp - 0x240], eax
nop
cmp dword [ebx + 0x54], 0
jne 0x41c84c
test eax, eax
je 0x41c44f
mov eax, dword [ebp - 0x6a0]
shr eax, 4
and eax, 1
je 0x41c422
cmp word [ebp - 0x674], 0x2e
jne 0x41c422
mov cx, word [ebp - 0x672]
test cx, cx
je 0x41c426
cmp cx, 0x2e
jne 0x41c422
cmp word [ebp - 0x670], 0
je 0x41c426
test eax, eax
je 0x41c44f
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x41c88c
lea ecx, [ebp - 0x6a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x240], eax
mov esi, eax
jmp 0x41c844
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
lea ecx, [ebp - 0x6a0]
call fcn.0041dc60
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x224]
mov eax, dword [esi - 0xc]
lea ebx, [esi - 0x10]
mov dword [ebp - 0x6a4], eax
cmp eax, 4
jl 0x41c639
jg 0x41c4fd
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebx + 0xc]
mov edx, eax
lea eax, [ebx + 0xc]
shr ecx, 0x1f
test cl, cl
jne 0x41c4b9
cmp edx, dword [ebx]
jne 0x41c4b9
mov edi, ebx
lock inc dword [eax]
add edi, 0x10
mov dword [ebp - 0x6ac], edi
jmp 0x41c54d
mov eax, dword [edx]
mov ecx, edx
push 2
push dword [ebx + 4]
call dword [eax]
mov dword [ebp - 0x6ac], eax
test eax, eax
je 0x41c8f7
mov ecx, dword [ebx + 4]
lea edi, [ebx + 0x10]
mov dword [eax + 4], ecx
lea ecx, [eax + 0x10]
mov edx, dword [ebx + 4]
inc edx
push edx
push edi
call fcn.00406050
mov edi, dword [ebp - 0x6ac]
add esp, 8
add edi, 0x10
mov dword [ebp - 0x6ac], edi
jmp 0x41c54d
mov byte [ebp - 4], 8
mov ecx, dword [ebx]
test ecx, ecx
je 0x41c510
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
jmp 0x41c512
xor ecx, ecx
mov byte [ebp - 4], 7
test ecx, ecx
jne 0x41c528
call fcn.00405ae0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x6a4]
add eax, 0xfffffffc
push ecx
push 4
lea ecx, [ebp - 0x6ac]
lea eax, [esi + eax*2]
push eax
call fcn.0041ca80
mov edi, dword [ebp - 0x6ac]
mov eax, dword [ebp - 0x6b0]
mov ecx, dword [ebp - 0x6b8]
or eax, 3
mov dword [ebp - 0x6b0], eax
mov dword [ebp - 0x6a4], eax
mov eax, dword [0x56d1e8]
cmp eax, dword [ecx + 4]
jle 0x41c5a2
push 0x56d1e8
call fcn.004af7b6
add esp, 4
cmp dword [0x56d1e8], 0xffffffff
jne 0x41c5a2
push 0x56d1e8
mov dword [0x56d1ec], 0
call fcn.004af76c
add esp, 4
xorps xmm0, xmm0
mov byte [ebp - 0x6a5], 0
movlpd qword [ebp - 0x220], xmm0
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0xa
push eax
call fcn.00432a45
add esp, 4
mov dword [ebp - 4], 0xb
lea eax, [ebp - 0x220]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x6a5]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x230]
push eax
push 0x41d680
push 0x56d1ec
call fcn.00432c10
add esp, 0xc
test eax, eax
je 0x41c8a8
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0xc
push eax
call fcn.00432a7f
add esp, 4
push 0x56bc60
push edi
call fcn.004fa075
add esp, 8
mov byte [ebp - 0x6a5], 0
test eax, eax
je 0x41c640
mov byte [ebp - 0x6a5], 1
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x6b0]
test al, 1
je 0x41c676
and eax, 0xfffffffe
lea edx, [edi - 0x10]
mov dword [ebp - 0x6b0], eax
mov byte [ebp - 4], 0xf
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41c676
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x6a5], 0
je 0x41c6c5
mov eax, dword [ebp - 0x244]
test eax, eax
jne 0x41c68d
xor esi, esi
jmp 0x41c6b1
cmp dword [ebp - 0x240], 0
jne 0x41c69a
xor esi, esi
jmp 0x41c6b1
lea ecx, [ebp - 0x6a0]
push ecx
push eax
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileW]
call eax
mov esi, eax
mov dword [ebp - 0x240], esi
mov byte [ebp - 4], 0x10
or ecx, 0xffffffff
lock xadd dword [ebx + 0xc], ecx
dec ecx
test ecx, ecx
jmp 0x41c82a
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41c7e9
mov eax, dword [ebp - 0x6b8]
mov ecx, dword [0x56d1f0]
cmp ecx, dword [eax + 4]
jle 0x41c717
push 0x56d1f0
call fcn.004af7b6
add esp, 4
cmp dword [0x56d1f0], 0xffffffff
jne 0x41c717
push 0x56d1f0
mov dword [0x56d1f4], 0
call fcn.004af76c
add esp, 4
xorps xmm0, xmm0
mov byte [ebp - 0x6a5], 0
movlpd qword [ebp - 0x220], xmm0
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0x11
push eax
call fcn.00432a45
add esp, 4
lea eax, [ebp - 0x220]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x6a5]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x238]
push eax
push 0x41d720
push 0x56d1f4
call fcn.00432c10
add esp, 0xc
test eax, eax
je 0x41c8c5
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0x13
push eax
call fcn.00432a7f
add esp, 4
mov byte [ebp - 4], 6
push 0x56bc4c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
mov dword [ebp - 0x6a4], edx
test edx, edx
je 0x41c7e2
mov esi, dword [ebp - 0x6b4]
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
cmp eax, ecx
je 0x41c7c3
cmp dword [eax], edx
je 0x41c7bf
add eax, 4
cmp eax, ecx
jne 0x41c7b4
cmp eax, ecx
jne 0x41c7e9
cmp dword [esi + 0x50], ecx
je 0x41c7d0
mov dword [ecx], edx
add dword [esi + 0x4c], 4
jmp 0x41c7e9
lea eax, [ebp - 0x6a4]
push eax
push ecx
lea ecx, [esi + 0x48]
call fcn.0041cc90
jmp 0x41c7e9
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x244]
test eax, eax
jne 0x41c7f7
xor esi, esi
jmp 0x41c81b
cmp dword [ebp - 0x240], 0
jne 0x41c804
xor esi, esi
jmp 0x41c81b
lea ecx, [ebp - 0x6a0]
push ecx
push eax
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileW]
call eax
mov esi, eax
mov dword [ebp - 0x240], esi
mov byte [ebp - 4], 0x16
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x41c834
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x6b4]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x240]
test esi, esi
jne 0x41c3e0
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x240], 0
test eax, eax
je 0x41c876
cmp eax, 0xffffffff
je 0x41c876
push eax
call esi
xor eax, eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], 0
test eax, eax
je 0x41c88c
cmp eax, 0xffffffff
je 0x41c88c
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af60c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xd
push eax
call fcn.00432aa0
add esp, 4
mov byte [ebp - 4], 0xb
test al, al
je 0x41c912
jmp 0x41c8fc
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0x14
push eax
call fcn.00432aa0
add esp, 4
mov byte [ebp - 4], 0x12
jmp 0x41c8bf
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 3
push eax
call fcn.00432aa0
add esp, 4
mov byte [ebp - 4], 1
jmp 0x41c8bf
call fcn.00405fa0
sub esp, 8
lea eax, [ebp - 0x220]
mov ecx, esp
push eax
call fcn.00404e30
call fcn.00404e90
call fcn.00432c28
int3