Function at 0x100af2a0
Capabilities:
Enumerate process modules
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4b4
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
test byte [ebp + 8], 1
je 0x100af2c5
mov esi, dword [esi + 8]
test esi, esi
je 0x100af2c9
dec esi
jmp 0x100af2cb
test esi, esi
jne 0x100af2c2
xor esi, esi
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], eax
xor eax, eax
cmp eax, dword [0x101040c4]
jno 0x100af6c7
mov eax, dword [0x1017b554]
movzx eax, byte [eax]
push 8
push 0x520
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x100af6df
mov dword [ebp - 0x5c], 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x24], 0
push 0
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x100af5e0
mov esi, eax
lea eax, [ebp - 0x4bc]
push 0x424
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x4c0], 0x428
lea edi, [ebp - 0x4c0]
push edi
push esi
call sub.kernel32.dll_Module32FirstW
cmp eax, 1
jne 0x100af5da
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x10], esi
jmp 0x100af3b0
mov esi, dword [ebp - 0x10]
lea edi, [ebp - 0x4c0]
nop word cs:[eax + eax]
nop dword [eax]
push edi
push esi
call sub.kernel32.dll_Module32NextW
cmp eax, 1
jne 0x100af5da
mov ecx, 0x208
xor eax, eax
nop word [eax + eax]
cmp word [ebp + eax*2 - 0x2a0], 0
je 0x100af3d6
inc eax
add ecx, 0xfffffffe
jne 0x100af3c0
mov eax, 0x104
push eax
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x6c]
push eax
call sym.__LT_std..ffi..os_str..OsString_u20_as_u20_std..os..windows..ffi..OsStringExt_GT_::from_wide::h63b25de594ca01f2
add esp, 0xc
mov ebx, dword [ebp - 0x68]
mov edx, ebx
lea ecx, [ebp - 0x40]
push dword [ebp - 0x64]
call sym.std::backtrace_rs::symbolize::gimli::mmap::h2b8a77287f4a2dfd
add esp, 4
test byte [ebp - 0x40], 1
je 0x100af47a
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
cmp eax, 0x40
jb 0x100af460
cmp word [esi], 0x5a4d
jne 0x100af460
mov edi, dword [esi + 0x3c]
mov ecx, eax
sub ecx, edi
mov dword [ebp - 0x14], edi
setb dl
cmp ecx, 0x78
setb cl
or cl, dl
jne 0x100af460
mov ecx, dword [ebp - 0x14]
cmp dword [esi + ecx], 0x4550
jne 0x100af460
mov ecx, dword [ebp - 0x14]
cmp word [esi + ecx + 0x18], 0x10b
jne 0x100af460
mov ecx, dword [ebp - 0x14]
movzx ecx, word [esi + ecx + 0x14]
cmp ecx, 0x60
jae 0x100af496
nop word [eax + eax]
mov dword [ebp - 0x40], esi
push esi
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 0x18]
call sub.kernel32.dll_CloseHandle
mov esi, dword [ebp - 0x10]
lea edi, [ebp - 0x4c0]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x100af3a0
push 1
push eax
push ebx
call sym.___rust_dealloc
add esp, 0xc
jmp 0x100af3a0
mov edi, dword [ebp - 0x14]
lea edx, [edi + 0x78]
sub eax, edx
setb byte [ebp - 0x1c]
cmp edi, 0xffffff87
ja 0x100af460
cmp byte [ebp - 0x1c], 0
jne 0x100af460
add ecx, 0xffffffa0
cmp eax, ecx
jb 0x100af460
add edx, esi
mov eax, dword [ebp - 0x14]
push dword [esi + eax + 0x74]
push ecx
push edx
lea eax, [ebp - 0x40]
push eax
call sym.object::read::pe::data_directory::DataDirectories::parse::hb6e224bbeeafe6ce
add esp, 0x10
cmp dword [ebp - 0x40], 1
mov eax, dword [ebp - 0x14]
je 0x100af460
mov eax, dword [esi + eax + 0x34]
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x4ac]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x1017b554]
movzx eax, byte [eax]
push 4
push 8
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x100af6eb
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x4a8]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], esi
mov dword [eax], ecx
mov dword [eax + 4], edx
push esi
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 0x18]
call sub.kernel32.dll_CloseHandle
mov eax, edi
neg eax
jo 0x100af38a
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], ebx
lea edi, [ebp - 0x4c0]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], 1
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x2c]
jne 0x100af592
lea ecx, [ebp - 0x2c]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h785af324af22a7d2
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x74]
mov edx, dword [ebp - 0x30]
mov eax, ecx
inc ecx
shl eax, 5
mov dword [ebp - 0x20], ecx
movsd qword [edx + eax + 0x18], xmm0
movsd xmm0, qword [ebp - 0x7c]
movsd qword [edx + eax + 0x10], xmm0
movsd xmm0, qword [ebp - 0x8c]
movsd xmm1, qword [ebp - 0x84]
movsd qword [edx + eax + 8], xmm1
movsd qword [edx + eax], xmm0
mov dword [ebp - 0x24], ecx
jmp 0x100af3a0
push esi
call sub.kernel32.dll_CloseHandle
movsd xmm0, qword [ebp - 0x2c]
mov esi, dword [0x101040c4]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x54]
movsd qword [ebp - 0x4c0], xmm0
movsd xmm0, qword [ebp - 0x5c]
mov ecx, esi
mov dword [ebp - 0x4b8], eax
mov dword [ebp - 0x4ac], edx
neg ecx
movsd qword [ebp - 0x4b4], xmm0
jo 0x100af694
mov ebx, dword [0x101040cc]
mov eax, dword [0x101040c8]
test ebx, ebx
mov dword [ebp - 0x18], eax
je 0x100af674
mov eax, dword [ebp - 0x18]
lea edi, [eax + 0x14]
jmp 0x100af646
add edi, 0x20
dec ebx
je 0x100af674
mov eax, dword [edi - 0x14]
test eax, eax
je 0x100af65b
push 1
push eax
push dword [edi - 0x10]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [edi - 4]
test eax, eax
je 0x100af640
shl eax, 3
push 4
push eax
push dword [edi]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x100af640
test esi, esi
je 0x100af689
shl esi, 5
push 4
push esi
push dword [ebp - 0x18]
call sym.___rust_dealloc
add esp, 0xc
lea ecx, [0x101040d0]
call sym.__ZN4core3ptr104drop_in_place_LT_alloc..vec..Vec_LT__LP_usize_C_std..backtrace_rs..symbolize..gimli..Mapping_RP__GT__GT_17h4bc
movsd xmm0, qword [ebp - 0x4b0]
movsd xmm2, qword [ebp - 0x4c0]
movsd xmm1, qword [ebp - 0x4b8]
mov esi, dword [ebp - 0x50]
movsd qword [0x101040d4], xmm0
movsd qword [0x101040cc], xmm1
movsd qword [0x101040c4], xmm2
lea edx, [ebp - 0x94]
mov ecx, esi
call sym.std::backtrace_rs::symbolize::gimli::resolve::__u7b__u7b_closure_u7d__u7d_::h742372e39782af85
add esp, 0x4b4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x520
push 8
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
mov dword [ebp - 0x10], edi
push 8
push 4
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
add esp, 8
ud2