Function at 0x4011c8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa78
mov esi, esp
mov dword [esi + 0xa60], ebp
lea eax, [esi + 0xa68]
mov dword [esi + 0x64], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x4375d0
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
and dword [esi + 0x7c], 0
and dword [esi + 0x84], 0
mov ebx, dword [ecx + 0x10]
mov edx, dword [ecx + 0x18]
mov ecx, ebx
mov dword [esi], edx
call fcn.00429a10
test eax, eax
je 0x401ba0
mov edi, edx
lea ecx, [esi + 0x54]
mov edx, eax
push edi
call fcn.004339b0
pop eax
mov edx, dword [esi]
mov ecx, ebx
call fcn.004219f0
test al, al
je 0x401251
lea ecx, [esi + 0x68]
mov edx, ebx
push dword [esi]
call fcn.00429d40
pop eax
jmp 0x401294
lea ecx, [esi + 0x5b0]
call fcn.00420ff0
lea edi, [esi + 0x358]
lea edx, [esi + 0x5b0]
mov ecx, edi
push 0x4486bc
call fcn.00404d6a
pop eax
mov ecx, edi
mov edx, ebx
push dword [esi]
call fcn.00427160
pop eax
movsd xmm0, qword [edi]
movsd xmm1, qword [edi + 8]
movsd qword [esi + 0x70], xmm1
movsd qword [esi + 0x68], xmm0
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x70]
call fcn.004286c0
mov ecx, eax
push 0x4486cc
call fcn.00404d20
pop ecx
test edx, edx
je 0x401bb5
js 0x401bc4
mov edi, eax
mov al, byte [0x45daa8]
mov ecx, edx
mov ebx, edx
call fcn.0040c6b0
test eax, eax
je 0x401bcb
push ebx
push edi
mov dword [esi], eax
push eax
call fcn.00439010
add esp, 0xc
mov al, byte [0x45daa8]
mov ecx, ebx
call fcn.0040c6b0
test eax, eax
je 0x401bd7
mov ecx, edi
mov edi, eax
push ebx
push ecx
push eax
call fcn.00439010
add esp, 0xc
lea ecx, [esi + 0x5b0]
mov dword [esi + 8], ebx
mov dword [esi + 0xa70], 3
mov edx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov byte [ecx + 0xc], 0
push 1
call fcn.00427160
pop eax
lea ecx, [esi + 0x5b0]
mov byte [esi + 7], 1
mov dword [esi + 0xa70], 1
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x2c], edx
push edi
call fcn.0041f950
pop eax
mov eax, dword [esi + 0x5b0]
mov edi, dword [esi + 0x5b4]
mov ecx, dword [esi + 0x5b8]
test eax, eax
je 0x401bf1
lea edx, [esi + 0x5b0]
mov byte [esi + 7], 1
mov dword [edx], eax
mov dword [edx + 8], ecx
mov dword [edx + 4], edi
lea ecx, [esi + 0x104]
push 1
call fcn.00426900
pop eax
mov edi, dword [esi + 0x104]
mov eax, dword [esi + 0x108]
test edi, edi
mov dword [esi + 0x30], eax
je 0x401c04
push 0x250
push 0
lea ebx, [esi + 0x5b0]
push ebx
call fcn.00439590
add esp, 0xc
push ebx
push edi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov ebx, dword [esi + 8]
cmp eax, 0xffffffff
mov dword [esi + 0x28], eax
mov dword [esi + 0x44], edi
je 0x401430
mov al, byte [0x45daa8]
push 0x18
pop ecx
call fcn.0040c6b0
test eax, eax
je 0x401c6e
mov ecx, dword [esi]
xor edi, edi
mov dword [esi + 0x48], eax
inc edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
and dword [eax + 0x14], 0
lea eax, [esi + 0x5b8]
lea ecx, [esi + 0x358]
mov edx, dword [eax - 8]
mov ebx, dword [eax - 4]
mov dword [esi + 0xc], edx
shrd edx, ebx, 8
mov dword [esi + 0x24], edx
push 0x248
push eax
push ecx
call fcn.00439010
add esp, 0xc
jmp 0x401442
push 2
pop edi
mov dword [esi + 0xc], 0
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
cmp dword [esi + 0x30], 0
je 0x401453
push 2
pop edx
mov ecx, dword [esi + 0x44]
call fcn.0040c6e0
cmp dword [esi + 0x1c], 0
je 0x401464
mov ecx, dword [esi + 0x2c]
xor edx, edx
inc edx
call fcn.0040c6e0
cmp dword [esi + 0x28], 0xffffffff
jne 0x40147a
mov ecx, dword [esi]
xor edx, edx
inc edx
call fcn.0040c6e0
xor eax, eax
dec eax
mov dword [esi + 0x28], eax
cmp edi, 2
mov dword [esi + 0x14], ebx
je 0x401c37
mov eax, dword [esi + 0x24]
movzx ecx, byte [esi + 0xc]
lea ebx, [esi + 0x5bc]
shl eax, 8
or ecx, eax
lea eax, [esi + 0x358]
mov dword [esi], ecx
push 0x248
push eax
push ebx
call fcn.00439010
add esp, 0xc
mov eax, dword [esi + 0x48]
lea ecx, [esi + 0x5e6]
mov dword [ebx + 0x248], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x24c], eax
mov eax, dword [esi + 0x14]
mov dword [ebx - 0xc], edi
mov dword [ebx - 4], eax
mov eax, dword [esi]
mov dword [ebx - 8], eax
mov ebx, dword [sym.imp.kernel32.dll_FindNextFileW]
movzx eax, word [ecx - 4]
movzx edx, word [ecx - 2]
mov dword [esi + 0x50], eax
xor eax, 0x2e
mov word [esi + 0x4e], dx
or ax, dx
movzx eax, word [ecx - 6]
sete byte [esi + 0x13]
mov word [esi + 0x3a], ax
cmp word [esi + 0x50], 0
sete al
cmp word [esi + 0x3a], 0x2e
sete cl
cmp edi, 1
jne 0x401581
or al, byte [esi + 0x13]
and cl, al
jne 0x401581
mov ebx, dword [esi + 0x48]
lock inc dword [ebx]
jle 0x401b6f
push 0x24
lea eax, [esi + 0x5bc]
push eax
lea eax, [esi + 0xe0]
push eax
call fcn.00439010
add esp, 0xc
push 0x21e
lea eax, [esi + 0x5e6]
push eax
lea eax, [esi + 0x810]
push eax
call fcn.00439010
add esp, 0xc
movzx eax, word [esi + 0x3a]
mov edi, dword [esi + 0x24]
mov edx, dword [esi + 0x14]
mov word [esi + 0x38], ax
mov eax, dword [esi + 0x50]
mov word [esi + 0x36], ax
movzx eax, word [esi + 0x4e]
mov dword [esi + 0x1c], edi
mov word [esi + 0x34], ax
mov eax, dword [esi + 0xc]
mov ecx, eax
jmp 0x401665
push 0x250
push 0
lea edi, [esi + 0x104]
push edi
call fcn.00439590
add esp, 0xc
push edi
mov edi, dword [esi + 0x28]
push edi
call ebx
test eax, eax
je 0x4015d1
cmp word [esi + 0x130], 0x2e
jne 0x4015ec
movzx eax, word [esi + 0x132]
test ax, ax
je 0x4015c8
cmp ax, 0x2e
jne 0x4015ec
cmp word [esi + 0x134], 0
jne 0x4015ec
lea eax, [esi + 0x104]
push eax
jmp 0x40159b
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
cmp eax, 0x12
je 0x401aed
xor ebx, ebx
call edi
mov edx, eax
xor ecx, ecx
jmp 0x401665
mov ebx, dword [esi + 0x48]
lock inc dword [ebx]
jle 0x401b6f
mov eax, dword [esi + 0x104]
mov edi, dword [esi + 0x108]
mov dword [esi], eax
shrd eax, edi, 8
mov dword [esi + 0x1c], eax
push 0x24
lea eax, [esi + 0x10c]
push eax
lea eax, [esi + 0xe0]
push eax
call fcn.00439010
add esp, 0xc
movzx eax, word [esi + 0x130]
mov word [esi + 0x38], ax
movzx eax, word [esi + 0x132]
mov word [esi + 0x36], ax
movzx eax, word [esi + 0x134]
mov word [esi + 0x34], ax
push 0x21e
lea eax, [esi + 0x136]
push eax
lea eax, [esi + 0x810]
push eax
call fcn.00439010
mov ecx, dword [esi]
mov edx, edi
add esp, 0xc
test ebx, ebx
lea edi, [esi + 0x98]
je 0x4016be
push 0x24
lea eax, [esi + 0xe0]
push eax
push edi
mov dword [esi + 8], edx
mov dword [esi], ecx
call fcn.00439010
add esp, 0xc
push 0x21e
lea eax, [esi + 0x810]
push eax
lea eax, [esi + 0x104]
push eax
call fcn.00439010
mov ecx, dword [esi]
mov edx, dword [esi + 8]
add esp, 0xc
movzx eax, word [esi + 0x38]
mov word [esi + 0x30], ax
movzx eax, word [esi + 0x36]
mov word [esi + 0x2c], ax
movzx eax, word [esi + 0x34]
mov word [esi + 0x44], ax
mov eax, dword [esi + 0x1c]
movzx ecx, cl
mov dword [esi + 0x35c], ebx
mov dword [esi + 0x364], edx
shl eax, 8
or ecx, eax
mov dword [esi + 0x360], ecx
push 0x24
push edi
lea eax, [esi + 0x368]
push eax
call fcn.00439010
add esp, 0xc
movzx eax, word [esi + 0x30]
mov word [esi + 0x38c], ax
movzx eax, word [esi + 0x2c]
mov word [esi + 0x38e], ax
movzx eax, word [esi + 0x44]
mov word [esi + 0x390], ax
push 0x21e
lea eax, [esi + 0x104]
push eax
lea eax, [esi + 0x392]
push eax
call fcn.00439010
add esp, 0xc
test ebx, ebx
mov dword [esi + 0x358], 1
je 0x40184c
push 0x250
lea eax, [esi + 0x360]
push eax
lea eax, [esi + 0x108]
push eax
call fcn.00439010
add esp, 0xc
mov dword [esi + 0x104], ebx
lea ecx, [esi + 0xe0]
lea edx, [esi + 0x104]
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
mov dword [esi + 0x18], eax
call fcn.00427060
mov eax, dword [esi + 0xe0]
mov ecx, dword [esi + 0xe8]
test edi, edi
mov ebx, 1
mov dword [esi + 8], eax
mov dword [esi], ecx
je 0x4017ac
js 0x401b8c
mov al, byte [0x45daa8]
mov ecx, edi
call fcn.0040c6b0
mov ebx, eax
test eax, eax
je 0x401b73
push edi
push dword [esi + 0x18]
push ebx
call fcn.00439010
add esp, 0xc
mov edx, dword [esi + 8]
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov byte [esi + 0xa4], 0
mov dword [esi + 0xa70], 5
lea ecx, [esi + 0x98]
push dword [esi]
call fcn.00427160
pop eax
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x9c]
mov edi, dword [esi + 0xa0]
cmp dword [esi + 0xe4], 0
mov ebx, dword [sym.imp.kernel32.dll_FindNextFileW]
mov dword [esi], eax
mov dword [esi + 0x18], ecx
je 0x40181e
mov ecx, dword [esi + 8]
xor edx, edx
inc edx
call fcn.0040c6e0
mov edx, dword [esi]
lea ecx, [esi + 0x98]
push edi
call fcn.00428930
pop eax
mov eax, dword [esi + 0x98]
mov edi, dword [esi + 0xa4]
xor eax, 2
or eax, dword [esi + 0x9c]
jne 0x401864
mov eax, dword [esi + 0xa0]
jmp 0x40188e
lea eax, [esi + 0x360]
push eax
call fcn.004049da
pop eax
mov ebx, dword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x401ae6
mov eax, dword [esi + 0xd8]
bt eax, 0xa
setae cl
bt dword [esi + 0xdc], 0x1d
setae dl
or dl, cl
test al, 0x10
sete al
and al, dl
movzx eax, al
shl eax, 8
or eax, 4
cmp al, 4
je 0x4018df
cmp al, 3
jne 0x4018df
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi + 0x40], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0xa70], 6
mov dword [esi + 0x3c], edx
push edx
mov dword [esi + 8], ecx
call dword [ecx]
add esp, 4
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x4018cb
mov edx, dword [eax + 8]
mov ecx, dword [esi + 0x3c]
call fcn.0040c6e0
mov ecx, dword [esi + 0x20]
push 4
pop edx
call fcn.0040c6e0
mov ebx, dword [sym.imp.kernel32.dll_FindNextFileW]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi]
mov edx, dword [esi + 0x18]
mov edi, eax
call fcn.0040ce31
mov eax, edi
cmp al, 4
jne 0x401adb
and eax, 0xff00
je 0x401adb
mov edi, dword [esi + 0x104]
push 0x250
lea eax, [esi + 0x108]
push eax
lea eax, [esi + 0x810]
push eax
call fcn.00439010
add esp, 0xc
test edi, edi
je 0x401ae6
and dword [esi + 0x5b0], 0
push 0x250
lea ebx, [esi + 0x810]
push ebx
lea eax, [esi + 0x108]
push eax
call fcn.00439010
add esp, 0xc
mov dword [esi + 0x104], edi
lea edi, [esi + 0x104]
lea ecx, [esi + 0x88]
mov edx, edi
call fcn.00427060
mov ecx, edi
call fcn.00404a5a
cmp byte [esi + 0x94], 2
je 0x401af4
mov eax, dword [esi + 0x8c]
mov edx, dword [esi + 0x88]
mov ecx, ebx
mov dword [esi], eax
mov dword [esi + 8], edx
push dword [esi + 0x90]
call fcn.004339b0
pop eax
mov ebx, dword [esi + 0x810]
mov eax, dword [esi + 0x814]
test ebx, ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], eax
cmove ebx, eax
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x4019b8
mov eax, dword [esi + 0x58]
mov edi, dword [esi + 0x818]
mov ecx, ebx
mov edx, edi
push dword [esi + 0x5c]
push eax
call fcn.0040d1fc
pop ecx
pop edx
test al, al
je 0x401ab9
mov ecx, ebx
mov edx, edi
push 3
push 0x44f20c
call fcn.0041234e
pop ecx
pop edx
lea ecx, [edi - 3]
test al, al
mov dword [esi + 0x358], 0x4486ec
mov dword [esi + 0x35c], 2
mov byte [esi + 0x11], al
lea eax, [esi + 0x54]
lea edx, [esi + 0x358]
cmove ecx, edi
and dword [esi + 0x368], 0
mov dword [esi + 0x98], eax
lea eax, [esi + 0x98]
mov dword [esi + 0x9c], 0x4082cc
mov dword [esi + 0x40], ecx
lea ecx, [esi + 0x104]
mov dword [esi + 0x360], eax
mov dword [esi + 0x364], 1
call fcn.00407b7a
mov eax, dword [esi + 0x108]
mov edi, dword [esi + 0x104]
mov edx, dword [esi + 0x40]
mov ecx, ebx
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x10c]
mov dword [esi + 0x60], eax
push eax
push edi
call fcn.0040d1fc
pop ecx
pop edx
mov edx, dword [esi + 0x3c]
mov ecx, edi
mov byte [esi + 0x12], al
call fcn.0040ce31
cmp byte [esi + 0x12], 0
je 0x401ab9
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x40]
add ebx, ecx
sub eax, ecx
lea ecx, [esi + 0x358]
mov edx, ebx
push eax
call fcn.00411810
pop eax
cmp byte [esi + 0x358], 0
jne 0x401ab9
movzx eax, byte [esi + 0x11]
mov edx, dword [esi + 0x35c]
lea ecx, [esi + 0x7c]
push eax
call fcn.004074b4
pop eax
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
call fcn.00404a3b
mov ecx, dword [esi + 8]
mov edx, dword [esi]
call fcn.0040ce31
mov ebx, dword [sym.imp.kernel32.dll_FindNextFileW]
xor edi, edi
jmp 0x4014fc
lea ecx, [esi + 0x104]
call fcn.00404a5a
xor edi, edi
jmp 0x4014fc
and dword [esi + 0x5b0], 0
lea edi, [esi + 0x804]
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_FindClose]
mov ecx, edi
call fcn.00404a5a
movsd xmm0, qword [esi + 0x7c]
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x6c]
movsd qword [edi - 0x254], xmm0
mov dword [edi - 0x24c], eax
call fcn.0040ce31
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x58]
call fcn.00404a3b
mov ebx, dword [esi + 0x64]
lea ecx, [ebx + 0x40]
call fcn.00404876
mov eax, dword [edi - 0x24c]
movsd xmm0, qword [edi - 0x254]
mov ecx, dword [esi + 0xa68]
mov dword [ebx + 0x48], eax
movsd qword [ebx + 0x40], xmm0
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
xor ecx, ecx
mov edx, edi
mov dword [esi + 0xa70], 4
inc ecx
call fcn.00446940
jmp 0x401c83
mov dword [esi + 0xa70], 4
call fcn.0040c730
jmp 0x401c83
push 0x14
pop edx
mov ecx, str.basepath.file_name__C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_file_rotate_0.7.6_src_suffix.rs
push 0x4486ac
call fcn.00446ec0
pop eax
ud2
push 3
pop eax
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], 0
jmp 0x401c37
call fcn.0040c730
ud2
xor ecx, ecx
mov edx, ebx
inc ecx
call fcn.00446940
ud2
and dword [esi + 0xa70], 0
xor ecx, ecx
mov edx, ebx
mov byte [esi + 6], 1
inc ecx
call fcn.00446940
jmp 0x401c83
mov edx, edi
mov eax, edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], ecx
shrd edx, ecx, 8
mov dword [esi + 0x24], edx
jmp 0x401c1c
mov eax, dword [esi + 0x10c]
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x14], eax
shld eax, ecx, 0x18
mov dword [esi + 0x24], eax
mov eax, ecx
mov dword [esi + 0xc], eax
cmp dword [esi + 0x1c], 0
je 0x401c2d
mov ecx, dword [esi + 0x2c]
xor edx, edx
inc edx
call fcn.0040c6e0
mov ecx, dword [esi]
xor edx, edx
inc edx
call fcn.0040c6e0
mov ecx, dword [esi + 0x24]
movzx eax, byte [esi + 0xc]
lea edi, [esi + 0x5b0]
shl ecx, 8
or eax, ecx
mov ecx, dword [esi + 0x14]
mov dword [edi], eax
mov dword [edi + 4], ecx
push 0x2b
pop edx
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0x4486dc
push 0x44878c
push edi
call fcn.00446e40
add esp, 0xc
ud2
mov dword [esi + 0xa70], 2
push 4
pop ecx
push 0x18
pop edx
call fcn.00446940
ud2