Function at 0x405dd0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x694
mov eax, dword [0x423020]
xor eax, esp
mov dword [esp + 0x690], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edi
add edi, 0x12
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edi
mov esi, 0x1e
lea esp, [esp]
cmp byte [0x4c2d21], 0
jne 0x405e20
push 0x3e8
call ebx
dec esi
jne 0x405e10
cmp byte [0x4c2d21], 0
jne 0x405e36
push str.something_wrong__checksum_is_not_ready
call fcn.00403c40
mov ecx, dword [0x4c43a8]
push ecx
mov byte [0x4c2d22], 1
call fcn.0040b151
mov ecx, dword [0x4c43a8]
xor edx, edx
push ecx
mov esi, eax
mov eax, dword [esp + 0x18]
push edx
push esi
mov dword [esp + 0x28], esi
mov word [eax], dx
call fcn.0040c810
mov eax, edi
add esp, 0x10
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405e70
sub eax, edx
sar eax, 1
lea edx, [esp + 0x490]
mov dword [0x4c419c], eax
mov eax, edi
sub edx, edi
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x405e90
lea eax, [esp + 0x490]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x405eb0
mov edx, dword [0x4202c0]
mov ecx, dword [0x4202c4]
mov dword [eax], edx
mov dx, word [0x4202c8]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x494]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x405f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x400
mov esi, eax
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [esp + 0x14]
push eax
push esi
push str._d:__s
mov ecx, 0x100
mov ebx, 0x4c48e0
call fcn.00403b90
push ebx
mov ebx, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x4a4]
push ecx
push str.cannot_FindFirstFileW__s_compare__s___s_n
call fcn.00405940
add esp, 0x1c
jmp 0x4061f3
mov esi, dword [esp + 0x18]
mov eax, edi
lea edx, [eax + 2]
jmp 0x405f60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405f60
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
jne 0x405f8c
lea edx, [esp + 0x54]
push edx
push edi
push str._s_s
lea eax, [esp + 0x294]
push eax
jmp 0x405f9f
lea ecx, [esp + 0x54]
push ecx
push edi
push 0x4202cc
lea edx, [esp + 0x294]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [esp + 0x28], 0x10
lea eax, [esp + 0x54]
je 0x406053
mov ecx, 0x4202d8
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405fe6
test dx, dx
je 0x405fe2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405fe6
add eax, 4
add ecx, 4
test dx, dx
jne 0x405fc0
xor eax, eax
jmp 0x405feb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406176
mov ecx, 0x4202dc
lea eax, [esp + 0x54]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406026
test dx, dx
je 0x406022
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406026
add eax, 4
add ecx, 4
test dx, dx
jne 0x406000
xor eax, eax
jmp 0x40602b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406176
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push esi
push eax
push ecx
lea edx, [esp + 0x294]
push edx
call fcn.00405a00
add esp, 0x10
jmp 0x406176
mov ecx, 0x420424
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40607e
test dx, dx
je 0x40607a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40607e
add eax, 4
add ecx, 4
test dx, dx
jne 0x406058
xor eax, eax
jmp 0x406083
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406176
mov eax, dword [0x4c419c]
mov edi, dword [0x4c43a8]
lea ecx, [esp + eax*2 + 0x288]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
test edi, edi
jle 0x4060ed
mov esi, dword [0x4c4198]
mov ecx, dword [esp + 0x1c]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4060d9
test dx, dx
je 0x4060d5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4060d9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4060b3
xor eax, eax
jmp 0x4060de
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4060ed
inc ebx
add esi, 0x220
cmp ebx, edi
jl 0x4060ad
cmp ebx, edi
jne 0x406100
lea edx, [esp + 0x288]
push edx
push str._s_not_on_the_volume_n
jmp 0x406166
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov esi, ebx
imul esi, esi, 0x220
add esi, dword [0x4c4198]
lea ecx, [esp + 0x278]
push ecx
lea ecx, [esp + 0x28c]
mov byte [ebx + eax], 1
call fcn.004053b0
lea eax, [esi + 0x210]
lea ecx, [esp + 0x27c]
add esp, 4
mov edx, 0x10
sub ecx, eax
mov esi, dword [ecx + eax]
cmp esi, dword [eax]
jne 0x406159
sub edx, 4
add eax, 4
cmp edx, 4
jae 0x406145
jmp 0x406172
lea edx, [esp + 0x288]
push edx
push str._s_bad
mov ebx, dword [esp + 0x18]
call fcn.00405940
add esp, 8
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405f52
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x12
je 0x4061e8
call esi
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0x400
mov esi, eax
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [esp + 0x1c]
push eax
push esi
push str._d:__s
mov ecx, 0x100
mov ebx, 0x4c48e0
call fcn.00403b90
push ebx
mov ebx, dword [esp + 0x20]
push edi
push str.compare_error____s_n
call fcn.00405940
add esp, 0x18
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
cmp dword [0x4c43a8], esi
jle 0x406239
xor edi, edi
nop
mov edx, dword [esp + 0x18]
cmp byte [esi + edx], 0
jne 0x40622a
mov eax, dword [0x4c4198]
mov ebx, dword [esp + 0x10]
lea ecx, [edi + eax]
push ecx
push 0x4c41a0
push esi
push str._d___s_s_missing_n
call fcn.00405940
add esp, 0x10
inc esi
add edi, 0x220
cmp esi, dword [0x4c43a8]
jl 0x406200
mov edx, dword [esp + 0x18]
push edx
call fcn.0040ac8f
mov ecx, dword [esp + 0x14]
add esp, 4
xor eax, eax
cmp word [ecx], ax
mov ecx, dword [esp + 0x69c]
pop edi
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret