Function at 0x4011e3
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], 0x4378b0
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.00429b80
test eax, eax
je 0x401bbb
mov edi, edx
lea ecx, [esi + 0x54]
mov edx, eax
push edi
call fcn.00433b20
pop eax
mov edx, dword [esi]
mov ecx, ebx
call fcn.00421b70
test al, al
je 0x40126c
lea ecx, [esi + 0x68]
mov edx, ebx
push dword [esi]
call fcn.00429eb0
pop eax
jmp 0x4012af
lea ecx, [esi + 0x5b0]
call fcn.00421170
lea edi, [esi + 0x358]
lea edx, [esi + 0x5b0]
mov ecx, edi
push 0x4496bc
call fcn.00404d73
pop eax
mov ecx, edi
mov edx, ebx
push dword [esi]
call fcn.004272d0
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.00428830
mov ecx, eax
push 0x4496cc
call fcn.00404d29
pop ecx
test edx, edx
je 0x401bd0
js 0x401bdf
mov edi, eax
mov al, byte [0x45eaa8]
mov ecx, edx
mov ebx, edx
call fcn.0040c700
test eax, eax
je 0x401be6
push ebx
push edi
mov dword [esi], eax
push eax
call fcn.00439200
add esp, 0xc
mov al, byte [0x45eaa8]
mov ecx, ebx
call fcn.0040c700
test eax, eax
je 0x401bf2
mov ecx, edi
mov edi, eax
push ebx
push ecx
push eax
call fcn.00439200
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__E
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov byte [ecx + 0xc], 0
push 1
call fcn.004272d0
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.0041fad0
pop eax
mov eax, dword [esi + 0x5b0]
mov edi, dword [esi + 0x5b4]
mov ecx, dword [esi + 0x5b8]
test eax, eax
je 0x401c0c
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.00426a70
pop eax
mov edi, dword [esi + 0x104]
mov eax, dword [esi + 0x108]
test edi, edi
mov dword [esi + 0x30], eax
je 0x401c1f
push 0x250
push 0
lea ebx, [esi + 0x5b0]
push ebx
call fcn.00439780
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 0x40144b
mov al, byte [0x45eaa8]
push 0x18
pop ecx
call fcn.0040c700
test eax, eax
je 0x401c89
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.00439200
add esp, 0xc
jmp 0x40145d
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 0x40146e
push 2
pop edx
mov ecx, dword [esi + 0x44]
call fcn.0040c730
cmp dword [esi + 0x1c], 0
je 0x40147f
mov ecx, dword [esi + 0x2c]
xor edx, edx
inc edx
call fcn.0040c730
cmp dword [esi + 0x28], 0xffffffff
jne 0x401495
mov ecx, dword [esi]
xor edx, edx
inc edx
call fcn.0040c730
xor eax, eax
dec eax
mov dword [esi + 0x28], eax
cmp edi, 2
mov dword [esi + 0x14], ebx
je 0x401c52
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.00439200
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 0x40159c
or al, byte [esi + 0x13]
and cl, al
jne 0x40159c
mov ebx, dword [esi + 0x48]
lock inc dword [ebx]
jle 0x401b8a
push 0x24
lea eax, [esi + 0x5bc]
push eax
lea eax, [esi + 0xe0]
push eax
call fcn.00439200
add esp, 0xc
push 0x21e
lea eax, [esi + 0x5e6]
push eax
lea eax, [esi + 0x810]
push eax
call fcn.00439200
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 0x401680
push 0x250
push 0
lea edi, [esi + 0x104]
push edi
call fcn.00439780
add esp, 0xc
push edi
mov edi, dword [esi + 0x28]
push edi
call ebx
test eax, eax
je 0x4015ec
cmp word [esi + 0x130], 0x2e
jne 0x401607
movzx eax, word [esi + 0x132]
test ax, ax
je 0x4015e3
cmp ax, 0x2e
jne 0x401607
cmp word [esi + 0x134], 0
jne 0x401607
lea eax, [esi + 0x104]
push eax
jmp 0x4015b6
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
cmp eax, 0x12
je 0x401b08
xor ebx, ebx
call edi
mov edx, eax
xor ecx, ecx
jmp 0x401680
mov ebx, dword [esi + 0x48]
lock inc dword [ebx]
jle 0x401b8a
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.00439200
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.00439200
mov ecx, dword [esi]
mov edx, edi
add esp, 0xc
test ebx, ebx
lea edi, [esi + 0x98]
je 0x4016d9
push 0x24
lea eax, [esi + 0xe0]
push eax
push edi
mov dword [esi + 8], edx
mov dword [esi], ecx
call fcn.00439200
add esp, 0xc
push 0x21e
lea eax, [esi + 0x810]
push eax
lea eax, [esi + 0x104]
push eax
call fcn.00439200
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.00439200
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.00439200
add esp, 0xc
test ebx, ebx
mov dword [esi + 0x358], 1
je 0x401867
push 0x250
lea eax, [esi + 0x360]
push eax
lea eax, [esi + 0x108]
push eax
call fcn.00439200
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.004271d0
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 0x4017c7
js 0x401ba7
mov al, byte [0x45eaa8]
mov ecx, edi
call fcn.0040c700
mov ebx, eax
test eax, eax
je 0x401b8e
push edi
push dword [esi + 0x18]
push ebx
call fcn.00439200
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.004272d0
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 0x401839
mov ecx, dword [esi + 8]
xor edx, edx
inc edx
call fcn.0040c730
mov edx, dword [esi]
lea ecx, [esi + 0x98]
push edi
call fcn.00428aa0
pop eax
mov eax, dword [esi + 0x98]
mov edi, dword [esi + 0xa4]
xor eax, 2
or eax, dword [esi + 0x9c]
jne 0x40187f
mov eax, dword [esi + 0xa0]
jmp 0x4018a9
lea eax, [esi + 0x360]
push eax
call fcn.004049e5
pop eax
mov ebx, dword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x401b01
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 0x4018fa
cmp al, 3
jne 0x4018fa
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 0x4018e6
mov edx, dword [eax + 8]
mov ecx, dword [esi + 0x3c]
call fcn.0040c730
mov ecx, dword [esi + 0x20]
push 4
pop edx
call fcn.0040c730
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.00404a20
mov eax, edi
cmp al, 4
jne 0x401af6
and eax, 0xff00
je 0x401af6
mov edi, dword [esi + 0x104]
push 0x250
lea eax, [esi + 0x108]
push eax
lea eax, [esi + 0x810]
push eax
call fcn.00439200
add esp, 0xc
test edi, edi
je 0x401b01
and dword [esi + 0x5b0], 0
push 0x250
lea ebx, [esi + 0x810]
push ebx
lea eax, [esi + 0x108]
push eax
call fcn.00439200
add esp, 0xc
mov dword [esi + 0x104], edi
lea edi, [esi + 0x104]
lea ecx, [esi + 0x88]
mov edx, edi
call fcn.004271d0
mov ecx, edi
call fcn.00404a72
cmp byte [esi + 0x94], 2
je 0x401b0f
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.00433b20
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 0x4019d3
mov eax, dword [esi + 0x58]
mov edi, dword [esi + 0x818]
mov ecx, ebx
mov edx, edi
push dword [esi + 0x5c]
push eax
call fcn.0040d360
pop ecx
pop edx
test al, al
je 0x401ad4
mov ecx, ebx
mov edx, edi
push 3
push 0x45021c
call fcn.004124de
pop ecx
pop edx
lea ecx, [edi - 3]
test al, al
mov dword [esi + 0x358], 0x4496ec
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], 0x4082c6
mov dword [esi + 0x40], ecx
lea ecx, [esi + 0x104]
mov dword [esi + 0x360], eax
mov dword [esi + 0x364], 1
call fcn.00407b7d
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.0040d360
pop ecx
pop edx
mov edx, dword [esi + 0x3c]
mov ecx, edi
mov byte [esi + 0x12], al
call fcn.00404a20
cmp byte [esi + 0x12], 0
je 0x401ad4
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.004119a0
pop eax
cmp byte [esi + 0x358], 0
jne 0x401ad4
movzx eax, byte [esi + 0x11]
mov edx, dword [esi + 0x35c]
lea ecx, [esi + 0x7c]
push eax
call fcn.004074b7
pop eax
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
call fcn.00404a53
mov ecx, dword [esi + 8]
mov edx, dword [esi]
call fcn.00404a20
mov ebx, dword [sym.imp.kernel32.dll_FindNextFileW]
xor edi, edi
jmp 0x401517
lea ecx, [esi + 0x104]
call fcn.00404a72
xor edi, edi
jmp 0x401517
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.00404a72
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.00404a20
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x58]
call fcn.00404a53
mov ebx, dword [esi + 0x64]
lea ecx, [ebx + 0x40]
call fcn.00404872
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.00446b30
jmp 0x401c9e
mov dword [esi + 0xa70], 4
call fcn.0040c780
jmp 0x401c9e
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 0x4496ac
call fcn.004470b0
pop eax
ud2
push 3
pop eax
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], 0
jmp 0x401c52
call fcn.0040c780
ud2
xor ecx, ecx
mov edx, ebx
inc ecx
call fcn.00446b30
ud2
and dword [esi + 0xa70], 0
xor ecx, ecx
mov edx, ebx
mov byte [esi + 6], 1
inc ecx
call fcn.00446b30
jmp 0x401c9e
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 0x401c37
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 0x401c48
mov ecx, dword [esi + 0x2c]
xor edx, edx
inc edx
call fcn.0040c730
mov ecx, dword [esi]
xor edx, edx
inc edx
call fcn.0040c730
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 0x4496dc
push 0x44978c
push edi
call fcn.00447030
add esp, 0xc
ud2
mov dword [esi + 0xa70], 2
push 4
pop ecx
push 0x18
pop edx
call fcn.00446b30
ud2