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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov eax, dword [ebp + 8]
mov ebx, ecx
test byte [edx + 0xb], 1
mov edi, edx
mov ecx, dword [eax + 8]
mov esi, dword [eax + 0xc]
jne 0x477c74
cmp ecx, esi
jae 0x477d25
inc ecx
mov dword [esp + 0x18], ecx
mov dword [eax + 8], ecx
jmp 0x477c84
cmp ecx, esi
jae 0x477d25
dec esi
mov dword [esp + 0x18], ecx
mov dword [eax + 0xc], esi
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
push eax
call sym.regex_automata::nfa::thompson::compiler::Compiler::c::h3089bb1c6c726661
add esp, 4
movsd xmm1, qword [esp + 0x34]
mov ecx, dword [esp + 0x24]
movsd xmm2, qword [esp + 0x3c]
mov eax, dword [esp + 0x20]
movsd xmm0, qword [esp + 0x2c]
mov edx, dword [esp + 0x28]
movsd qword [esp + 0xa8], xmm1
movsd xmm1, qword [esp + 0x44]
mov dword [esp + 0xc], ecx
movsd qword [esp + 0xb0], xmm2
movsd xmm2, qword [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
cmp eax, 0x27
movsd qword [esp + 0xa0], xmm0
movsd qword [esp + 0xb8], xmm1
movsd xmm1, qword [esp + 0x54]
movsd qword [esp + 0xc0], xmm2
mov dword [esp + 0xd0], ecx
movsd qword [esp + 0xc8], xmm1
je 0x477dd1
cmp eax, 0x28
jne 0x477ef1
cmp dword [edi + 0x20], 0
jne 0x478060
lea eax, [esp + 0x68]
mov dword [edi + 0x20], 0xffffffff
mov dword [esp + 0x6c], 0
lea edx, [edi + 0x24]
mov word [esp + 0x68], 0
lea ecx, [esp + 0x20]
push eax
call sym.regex_automata::nfa::thompson::builder::Builder::add::h2a04e8d07243765a
add esp, 4
inc dword [edi + 0x20]
mov eax, dword [esp + 0x20]
cmp eax, 0x27
jne 0x477d76
mov ecx, dword [esp + 0x24]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx], eax
jmp 0x478043
movsd xmm2, qword [esp + 0x50]
movsd xmm1, qword [esp + 0x48]
movsd xmm0, qword [esp + 0x58]
mov ecx, dword [esp + 0x24]
movsd qword [ebx + 0x30], xmm2
movsd qword [ebx + 0x28], xmm1
movsd xmm2, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x38]
movsd qword [ebx + 0x38], xmm0
movsd qword [ebx + 0x20], xmm2
movsd qword [ebx + 0x18], xmm1
movsd xmm2, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x28]
movsd qword [ebx + 0x10], xmm2
movsd qword [ebx + 8], xmm1
mov dword [ebx + 4], ecx
mov dword [ebx], eax
jmp 0x478043
mov dword [esp + 8], ebx
lea ebx, [esp + 0x2c]
lea eax, [edi + 0x24]
mov dword [esp + 0x64], eax
test byte [edi + 0xb], 1
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x60], edx
jne 0x477e10
nop
cmp ecx, esi
jae 0x477f69
mov eax, dword [ebp + 8]
inc ecx
mov dword [esp + 0x18], ecx
mov dword [eax + 8], ecx
jmp 0x477e1f
cmp ecx, esi
jae 0x477f69
mov eax, dword [ebp + 8]
dec esi
mov dword [eax + 0xc], esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push dword [esp + 0x10]
call sym.regex_automata::nfa::thompson::compiler::Compiler::c::h3089bb1c6c726661
add esp, 4
movsd xmm1, qword [ebx + 8]
mov edx, dword [esp + 0x28]
movsd xmm2, qword [ebx + 0x10]
mov ecx, dword [esp + 0x20]
movsd xmm0, qword [ebx]
mov eax, dword [esp + 0x24]
movsd qword [esp + 0x70], xmm1
movsd xmm1, qword [ebx + 0x18]
mov dword [esp + 0x1c], edx
movsd qword [esp + 0x78], xmm2
movsd xmm2, qword [ebx + 0x20]
mov edx, dword [ebx + 0x30]
cmp ecx, 0x27
movsd qword [esp + 0x68], xmm0
movsd qword [esp + 0x80], xmm1
movsd xmm1, qword [ebx + 0x28]
movsd qword [esp + 0x88], xmm2
mov dword [esp + 0x98], edx
movsd qword [esp + 0x90], xmm1
jne 0x477f60
cmp dword [edi + 0x20], 0
jne 0x47804b
mov edx, dword [esp + 0x64]
mov dword [edi + 0x20], 0xffffffff
lea ecx, [esp + 0x20]
push eax
push dword [esp + 0x64]
call sym.regex_automata::nfa::thompson::builder::Builder::patch::hda67acb2ee0ad884
add esp, 8
inc dword [edi + 0x20]
mov eax, dword [esp + 0x20]
cmp eax, 0x27
jne 0x477fe9
mov edx, dword [esp + 0x1c]
test byte [edi + 0xb], 1
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x60], edx
jne 0x477e10
jmp 0x477df0
movsd xmm1, qword [esp + 0xc0]
mov ecx, dword [esp + 0xd0]
movsd xmm2, qword [esp + 0xb8]
movsd xmm0, qword [esp + 0xc8]
movsd qword [ebx + 0x2c], xmm1
movsd xmm1, qword [esp + 0xb0]
mov dword [ebx + 0x3c], ecx
movsd qword [ebx + 0x24], xmm2
movsd xmm2, qword [esp + 0xa0]
mov ecx, dword [esp + 0xc]
movsd qword [ebx + 0x34], xmm0
movsd qword [ebx + 0x1c], xmm1
movsd xmm1, qword [esp + 0xa8]
movsd qword [ebx + 0xc], xmm2
movsd qword [ebx + 0x14], xmm1
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
jmp 0x478043
mov edx, dword [esp + 0x60]
cmp ecx, 0x28
jne 0x477f82
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax], 0x27
jmp 0x478043
mov esi, dword [esp + 8]
movsd xmm1, qword [esp + 0x88]
movsd xmm2, qword [esp + 0x80]
mov edx, dword [esp + 0x98]
movsd xmm0, qword [esp + 0x90]
movsd qword [esi + 0x2c], xmm1
movsd xmm1, qword [esp + 0x78]
movsd qword [esi + 0x24], xmm2
movsd xmm2, qword [esp + 0x68]
mov dword [esi + 0x3c], edx
movsd qword [esi + 0x34], xmm0
movsd qword [esi + 0x1c], xmm1
movsd xmm1, qword [esp + 0x70]
movsd qword [esi + 0xc], xmm2
movsd qword [esi + 0x14], xmm1
mov dword [esi], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
jmp 0x478043
mov edx, dword [esp + 8]
movsd xmm2, qword [esp + 0x4c]
movsd xmm1, qword [esp + 0x44]
mov ecx, dword [esp + 0x5c]
movsd xmm0, qword [esp + 0x54]
movsd qword [edx + 0x2c], xmm2
movsd qword [edx + 0x24], xmm1
movsd xmm2, qword [esp + 0x3c]
movsd xmm1, qword [esp + 0x34]
mov dword [edx + 0x3c], ecx
movsd qword [edx + 0x34], xmm0
movsd qword [edx + 0x1c], xmm2
movsd qword [edx + 0x14], xmm1
movsd xmm2, qword [esp + 0x24]
movsd xmm1, qword [esp + 0x2c]
movsd qword [edx + 0xc], xmm1
movsd qword [edx + 4], xmm2
mov dword [edx], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov ecx, str.already_borrowedlibrary_std_srcio_stdio.rs
mov edx, 0x10
push 0x56a470
jmp 0x478073
lea eax, [esp + 4]
mov ecx, str.already_borrowedlibrary_std_srcio_stdio.rs
mov edx, 0x10
push 0x56a4a0
push 0x56a30c
push eax
call dbg.unwrap_failed
add esp, 0xc
ud2