Function at 0x541050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x54107d
mov edi, dword [eax + 0x50]
mov ebx, dword [eax + 0x58]
cmp ecx, 1
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x5410a9
jmp 0x541097
mov edi, str._stdin__stdin__has_no_metadataC:UsersTEST.cargo_registry_srcindex.crates.io_6f17d22bba15001fignore_0.4.20_srcwalk.rs
mov ebx, 7
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x5410a9
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x54177f
mov dword [0x5da100], eax
push 0x248
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x54177f
mov ecx, edi
mov edx, ebx
mov dword [eax], 0x5bf065
mov dword [eax + 4], 3
mov dword [eax + 8], 0x5bef4f
mov dword [eax + 0xc], 0xb
mov dword [eax + 0x10], 0x5bef5a
mov dword [eax + 0x14], 3
mov dword [eax + 0x18], 0x5bef5d
mov dword [eax + 0x1c], 3
mov dword [eax + 0x20], 0x5bef60
mov dword [eax + 0x24], 3
mov dword [eax + 0x28], 0x5bef63
mov dword [eax + 0x2c], 3
mov dword [eax + 0x30], 0x5bef66
mov dword [eax + 0x34], 3
mov dword [eax + 0x38], 0x5bef69
mov dword [eax + 0x3c], 3
mov dword [eax + 0x40], 0x5bef6c
mov dword [eax + 0x44], 3
mov dword [eax + 0x48], 0x5bef6f
mov dword [eax + 0x4c], 3
mov dword [eax + 0x50], str.cmd_Crd__s__q__systemdrive__Recycle.binfailed_to_execute_process
mov dword [eax + 0x54], 3
mov dword [eax + 0x58], 0x5bef72
mov dword [eax + 0x5c], 3
mov dword [eax + 0x60], 0x5bef75
mov dword [eax + 0x64], 3
mov dword [eax + 0x68], 0x5bef78
mov dword [eax + 0x6c], 3
mov dword [eax + 0x70], 0x5bef7b
mov dword [eax + 0x74], 3
mov dword [eax + 0x78], 0x5bef7e
mov dword [eax + 0x7c], 3
mov dword [eax + 0x80], 0x5bef81
mov dword [eax + 0x84], 3
mov dword [eax + 0x88], 0x5bef84
mov dword [eax + 0x8c], 3
mov dword [eax + 0x90], 0x5bef87
mov dword [eax + 0x94], 0xd
mov dword [eax + 0x98], 0x5bef94
mov dword [eax + 0x9c], 7
mov dword [eax + 0xa0], 0x5bef9b
mov dword [eax + 0xa4], 7
mov dword [eax + 0xa8], 0x5befa2
mov dword [eax + 0xac], 7
mov dword [eax + 0xb0], 0x5befa9
mov dword [eax + 0xb4], 3
mov dword [eax + 0xb8], 0x5befac
mov dword [eax + 0xbc], 3
mov dword [eax + 0xc0], 0x5befaf
mov dword [eax + 0xc4], 2
mov dword [eax + 0xc8], 0x5befb1
mov dword [eax + 0xcc], 1
mov dword [eax + 0xd0], 0x5befb2
mov dword [eax + 0xd4], 3
mov dword [eax + 0xd8], 0x5befb5
mov dword [eax + 0xdc], 7
mov dword [eax + 0xe0], 0x5befbc
mov dword [eax + 0xe4], 3
mov dword [eax + 0xe8], 0x5befbf
mov dword [eax + 0xec], 3
mov dword [eax + 0xf0], 0x5befc2
mov dword [eax + 0xf4], 4
mov dword [eax + 0xf8], 0x5befc6
mov dword [eax + 0xfc], 3
mov dword [eax + 0x100], 0x5befc9
mov dword [eax + 0x104], 3
mov dword [eax + 0x108], 0x5befcc
mov dword [eax + 0x10c], 3
mov dword [eax + 0x110], 0x5befcf
mov dword [eax + 0x114], 3
mov dword [eax + 0x118], 0x5befd2
mov dword [eax + 0x11c], 3
mov dword [eax + 0x120], 0x5befd5
mov dword [eax + 0x124], 3
mov dword [eax + 0x128], 0x5befd8
mov dword [eax + 0x12c], 3
mov dword [eax + 0x130], 0x5befdb
mov dword [eax + 0x134], 5
mov dword [eax + 0x138], 0x5befe0
mov dword [eax + 0x13c], 3
mov dword [eax + 0x140], 0x5befe3
mov dword [eax + 0x144], 4
mov dword [eax + 0x148], 0x5befe7
mov dword [eax + 0x14c], 3
mov dword [eax + 0x150], 0x5befea
mov dword [eax + 0x154], 2
mov dword [eax + 0x158], 0x5befec
mov dword [eax + 0x15c], 3
mov dword [eax + 0x160], 0x5befef
mov dword [eax + 0x164], 0xc
mov dword [eax + 0x168], 0x5beffb
mov dword [eax + 0x16c], 3
mov dword [eax + 0x170], 0x5beffe
mov dword [eax + 0x174], 3
mov dword [eax + 0x178], 0x5bf001
mov dword [eax + 0x17c], 3
mov dword [eax + 0x180], 0x5bf004
mov dword [eax + 0x184], 8
mov dword [eax + 0x188], 0x5bf00c
mov dword [eax + 0x18c], 7
mov dword [eax + 0x190], 0x5bf013
mov dword [eax + 0x194], 3
mov dword [eax + 0x198], 0x5bf016
mov dword [eax + 0x19c], 3
mov dword [eax + 0x1a0], 0x5bf019
mov dword [eax + 0x1a4], 3
mov dword [eax + 0x1a8], 0x5bf01c
mov dword [eax + 0x1ac], 3
mov dword [eax + 0x1b0], 0x5bf01f
mov dword [eax + 0x1b4], 3
mov dword [eax + 0x1b8], 0x5bf022
mov dword [eax + 0x1bc], 9
mov dword [eax + 0x1c0], 0x5bf02b
mov dword [eax + 0x1c4], 3
mov dword [eax + 0x1c8], 0x5bf02e
mov dword [eax + 0x1cc], 3
mov dword [eax + 0x1d0], 0x5bf031
mov dword [eax + 0x1d4], 6
mov dword [eax + 0x1d8], 0x5bf037
mov dword [eax + 0x1dc], 1
mov dword [eax + 0x1e0], 0x5bf038
mov dword [eax + 0x1e4], 1
mov dword [eax + 0x1e8], 0x5bf039
mov dword [eax + 0x1ec], 5
mov dword [eax + 0x1f0], 0x5bf03e
mov dword [eax + 0x1f4], 5
mov dword [eax + 0x1f8], 0x5bf043
mov dword [eax + 0x1fc], 4
mov dword [eax + 0x200], 0x5bf047
mov dword [eax + 0x204], 3
mov dword [eax + 0x208], 0x5bf04a
mov dword [eax + 0x20c], 9
mov dword [eax + 0x210], 0x5bf053
mov dword [eax + 0x214], 3
mov dword [eax + 0x218], 0x5bf056
mov dword [eax + 0x21c], 3
mov dword [eax + 0x220], 0x5bf059
mov dword [eax + 0x224], 2
mov dword [eax + 0x228], 0x5bf05b
mov dword [eax + 0x22c], 1
mov dword [eax + 0x230], 0x5bf05c
mov dword [eax + 0x234], 1
mov dword [eax + 0x238], 0x5bf05d
mov dword [eax + 0x23c], 5
mov dword [eax + 0x240], 0x5bf062
mov esi, eax
mov dword [eax + 0x244], 3
call dbg.file_name
mov bl, 1
test eax, eax
je 0x541714
cmp edx, 2
jne 0x54163a
movzx ecx, word [eax]
cmp ecx, 0x2e2e
je 0x541714
mov dword [ebp - 0x18], eax
add eax, edx
mov dword [ebp - 0x1c], esi
xor ecx, ecx
mov edi, edx
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x10]
nop dword [eax]
mov ebx, edx
mov eax, edi
add ebx, ecx
je 0x54170f
cmp byte [esi + ecx - 1], 0x2e
lea ebx, [ecx - 1]
lea edi, [eax - 1]
mov ecx, ebx
jne 0x541650
lea ecx, [edx + ebx + 1]
cmp edx, ecx
jb 0x541790
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
add edx, ebx
je 0x541712
mov edx, dword [ebp - 0x10]
mov ecx, ebx
cmp ebx, 0xffffffff
not ecx
lea edx, [edx + ebx + 1]
je 0x541734
add edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x5416b6
add edx, 2
cmp ecx, eax
cmovne ecx, edx
nop
cmp ecx, eax
mov edx, ecx
je 0x54172c
movzx ebx, byte [edx]
lea ecx, [edx + 1]
test bl, bl
jns 0x5416b0
cmp bl, 0xe0
jb 0x5416a6
cmp bl, 0xed
jne 0x5416ea
cmp ecx, eax
je 0x54172f
lea eax, [edx + 2]
cmp eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
je 0x54172f
cmp byte [edx + 1], 0xa0
jae 0x54177b
add edx, 3
mov ecx, edx
jmp 0x5416b0
add edx, 2
cmp ecx, eax
cmove edx, ecx
xor ecx, ecx
cmp edx, eax
setne cl
add ecx, edx
cmp bl, 0xf0
jb 0x5416b0
xor eax, eax
cmp ecx, dword [ebp - 0x10]
setne al
add ecx, eax
mov eax, dword [ebp - 0x10]
jmp 0x5416b0
mov esi, dword [ebp - 0x1c]
mov bl, 1
push esi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
jmp 0x541736
mov edi, edx
test edi, edi
mov edx, str.Lazy_instance_has_previously_been_poisoned
mov ebx, 0xffffffb7
mov eax, edi
cmovne edx, edi
cmove ecx, edi
mov dword [ebp - 0x10], edx
jmp 0x541753
inc ebx
je 0x541712
cmp ecx, dword [esi + ebx*8 + 0x24c]
jne 0x541750
push ecx
push dword [ebp - 0x10]
push dword [esi + ebx*8 + 0x248]
mov edi, ecx
call sub.msvcrt.dll_memcmp
mov ecx, edi
add esp, 0xc
test eax, eax
jne 0x541750
xor ebx, ebx
jmp 0x541714
xor edi, edi
jmp 0x54172f
mov ecx, 4
mov edx, 0x248
call dbg.handle_alloc_error
ud2
push 0x5b99ec
call dbg.slice_start_index_len_fail
add esp, 4
ud2