Function at 0x401cd0
Capabilities:
Enumerate files on windows
Get file system object information
Print debug messages
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push 0x415732
push eax
mov eax, dword [0x41a0a8]
mov dword fs:[0], esp
sub esp, 0x9a8
lea edx, [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x9c0]
push edx
lea eax, [esp + 0x2d4]
push 0x2c0
push eax
push ecx
call fcn.00404a50
add esp, 0x18
test al, al
jne 0x401d31
mov ecx, dword [esp + 0x9a8]
mov dword fs:[0], ecx
add esp, 0x9b4
ret
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x1d9]
mov byte [esp + 0x1d8], bl
lea edx, [esp + 0x1d8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x2d8]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x258], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xc
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x25c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x1f
lea edi, [esp + 0x25d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x4dc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x33]
mov byte [esp + 0x20], cl
call fcn.004107e2
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
lea edx, [esp + 0x1d8]
lea ecx, [esp + 0x38]
push edx
mov dword [esp + 0x9c4], ebx
call fcn.00410aad
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
lea edx, [esp + 0x58]
push ecx
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x9cc], 1
call fcn.00403d60
lea ecx, [esp + 0x38]
mov byte [esp + 0x9c0], bl
call fcn.00410a83
mov eax, dword [0x41a574]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x9c0], 5
cmp eax, ebx
jbe 0x4022e9
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
mov eax, dword [eax]
add eax, 8
push eax
call fcn.00410b2c
mov ecx, dword [esp + 0x20]
push ebx
mov esi, dword [ecx]
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [eax], edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
lea ecx, [esi + 8]
call fcn.00403e10
push esi
call fcn.0041080b
mov eax, dword [esp + 0x28]
add esp, 4
lea edx, [esp + 0x18]
dec eax
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.00410b2c
push 0x41a0f0
lea ecx, [esp + 0x2c]
call fcn.00410c40
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x98]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x34], eax
je 0x4022df
test byte [esp + 0x98], 0x10
je 0x401fdb
mov esi, 0x41a0b8
lea eax, [esp + 0xc4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401f0e
cmp cl, bl
je 0x401f0a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401f0e
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401eea
xor eax, eax
jmp 0x401f13
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x401fdb
mov esi, 0x41a0b4
lea eax, [esp + 0xc4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401f4b
cmp cl, bl
je 0x401f47
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401f4b
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401f27
xor eax, eax
jmp 0x401f50
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x401fdb
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
call fcn.00410b2c
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x18]
call fcn.00410c40
push 0x41a0ec
lea ecx, [esp + 0x18]
call fcn.00410c40
mov esi, dword [esp + 0x20]
push 0xc
mov ebp, dword [esi + 4]
lea edi, [esi + 4]
call fcn.004107e2
add esp, 4
cmp esi, ebx
jne 0x401f9f
mov esi, eax
cmp ebp, ebx
mov dword [eax], esi
jne 0x401fa7
mov ebp, eax
mov dword [eax + 4], ebp
mov dword [edi], eax
mov ecx, dword [eax + 4]
lea edx, [esp + 0x14]
push edx
mov dword [ecx], eax
add eax, 8
push eax
call fcn.00403dc0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
add esp, 8
inc edx
mov dword [esp + 0x24], edx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4022c4
mov esi, 0x41a0b8
lea eax, [esp + 0xc4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40200b
cmp cl, bl
je 0x402007
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40200b
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401fe7
xor eax, eax
jmp 0x402010
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4022c4
mov esi, 0x41a0b4
lea eax, [esp + 0xc4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402048
cmp cl, bl
je 0x402044
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402048
add eax, 2
add esi, 2
cmp cl, bl
jne 0x402024
xor eax, eax
jmp 0x40204d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4022c4
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x258]
lea edx, [esp + 0xc4]
push ecx
push edx
call fcn.00406580
add esp, 8
cmp eax, ebx
je 0x4022c4
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x1d8]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4020b2
cmp cl, bl
je 0x4020ae
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4020b2
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40208e
xor eax, eax
jmp 0x4020b7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4020ce
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x10]
push eax
call fcn.00410b7c
jmp 0x402103
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.00410b2c
lea edx, [esp + 0x1d8]
push 0x422abc
push edx
lea ecx, [esp + 0x18]
call fcn.0040ff42
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x10]
push eax
call fcn.00410c40
mov ecx, 0x58
xor eax, eax
lea edi, [esp + 0x598]
push 0x510
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x59c]
push 0x160
push ecx
lea edx, [esp + 0xd0]
push 0x80
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2d8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [esp + 0x98]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test al, 0x10
mov edi, 0x41a0e4
jne 0x402177
lea edi, [esp + 0x6a8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x4d8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xb8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xb4]
sub eax, ecx
lea ecx, [esp + 0x78]
shr eax, 0xa
push eax
push str._dKB
push ecx
call fcn.00406523
mov al, byte [esp + 0xa4]
add esp, 0xc
test al, 0x10
mov edi, 0x422abc
jne 0x4021d5
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x558]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xac]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x46]
mov ecx, dword [esp + 0x44]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x46]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x46]
push ecx
mov ecx, dword [esp + 0x48]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x70]
push str._4d__02d__02d__02d:_02d:_02d
push edx
call fcn.00406523
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x598]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x9ec]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x50]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x41a0a8]
push ecx
push edx
mov edx, dword [esp + 0x9f0]
push eax
lea ecx, [esp + 0x304]
push 0x2c0
push ecx
push edx
call fcn.004049c0
add esp, 0x38
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x98]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401ed0
cmp dword [esp + 0x24], ebx
ja 0x401e51
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0xaf
xor eax, eax
lea edi, [esp + 0x6fa]
mov byte [esp + 0x6f8], 1
mov byte [esp + 0x6f9], 1
lea edx, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x9cc]
stosw word es:[edi], ax
mov eax, dword [0x41a0a8]
push eax
push ecx
mov ecx, dword [esp + 0x9d0]
push edx
lea eax, [esp + 0x704]
push 0x2c0
push eax
push ecx
call fcn.004049c0
add esp, 0x18
lea ecx, [esp + 0x10]
mov byte [esp + 0x9c0], 4
call fcn.00410a83
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c0], 3
call fcn.00410a83
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c0], 2
call fcn.00410a83
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c0], bl
call fcn.00410a83
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x9c0], 0xffffffff
mov edi, dword [ebp]
cmp edi, ebp
je 0x4023d0
mov esi, edi
mov edi, dword [edi]
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [edx], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
lea ecx, [esi + 8]
call fcn.00410a83
push esi
call fcn.0041080b
mov ecx, dword [esp + 0x28]
add esp, 4
dec ecx
cmp edi, ebp
mov dword [esp + 0x24], ecx
jne 0x40239f
mov eax, dword [esp + 0x20]
push eax
call fcn.0041080b
mov ecx, dword [esp + 0x9bc]
add esp, 4
mov al, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9b4
ret