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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov dword [esp + 0x28], ecx
mov ebx, dword [ecx]
test ebx, ebx
je 0x46bc5f
mov edi, edx
cmp byte [ebx + 0x20], 0
je 0x46b95e
lea esi, [esp + 0x74]
mov ecx, esi
mov edx, ebx
push dword [edi]
call fcn.0046132b
add esp, 4
movzx eax, byte [esi]
cmp eax, 5
je 0x46bb00
cmp eax, 6
jne 0x46bb24
mov ecx, ebx
call fcn.00460a0c
mov esi, eax
jmp 0x46bc31
lea eax, [ebx + 0x10]
mov dword [esp + 8], eax
xor edx, edx
inc edx
lea esi, [esp + 0x10]
mov dword [esp + 0xc], edi
mov ecx, ebx
call fcn.00461526
mov edx, dword [ebx]
add edx, 8
mov ecx, esi
call fcn.00412ae4
cmp dword [esp + 0x10], 0
jne 0x46bc73
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov ecx, dword [esi + 0x18c]
mov edx, dword [esi + 0x190]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.004109ce
add esp, 8
mov ecx, dword [esi + 0x144]
mov edi, dword [eax + 0x3c]
test edi, edi
mov edx, 0
cmovle edi, edx
cmp edi, ecx
cmovae edi, ecx
mov eax, dword [eax + 0xd8]
mov dword [esp + 4], eax
mov ecx, esi
mov edx, dword [esp]
call fcn.00426b01
cmp edi, dword [esp + 4]
mov edi, dword [esp + 0xc]
lea esi, [esp + 0x10]
jbe 0x46ba0c
lea ecx, [esp + 0x5c]
mov edx, ebx
push dword [edi]
call fcn.0046132b
add esp, 4
movzx eax, byte [esp + 0x5c]
cmp eax, 6
je 0x46ba39
jmp 0x46bbaf
mov ecx, esi
mov edx, ebx
push dword [edi]
call fcn.004619ea
add esp, 4
movzx ecx, byte [esp + 0x10]
cmp ecx, 7
je 0x46bb67
mov eax, dword [esp + 0x14]
cmp ecx, 5
jne 0x46bb40
test eax, eax
je 0x46ba0c
lea ecx, [esp + 0x2c]
mov edx, dword [esp + 8]
push edi
call fcn.00466c48
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, 2
je 0x46bb67
test eax, eax
je 0x46bbc4
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
test esi, esi
je 0x46bbe2
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 8]
cmp dword [eax], 0
je 0x46ba89
cmp dword [ebx + 0x18], 0
sete al
jmp 0x46baa5
mov eax, dword [ebx + 0x18]
push dword [ebx + 0x14]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call dword [eax + 0x14]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add esp, 4
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], 0
mov byte [esp], al
movzx eax, al
mov ecx, ebx
lea edx, [esp + 0x40]
push eax
call fcn.00460a55
add esp, 4
cmp al, 0xc
jne 0x46bbed
cmp byte [esp], 0
jne 0x46bbfe
cmp byte [ebx + 0x20], 0
mov edx, 1
mov edi, dword [esp + 0xc]
lea esi, [esp + 0x10]
je 0x46b970
jmp 0x46b929
mov eax, dword [esp + 0x78]
mov edi, ebx
lea ebx, [esp + 0x10]
mov byte [ebx], 2
mov dword [ebx + 4], eax
mov ecx, 9
call fcn.00426cc9
mov esi, eax
mov ecx, eax
mov edx, ebx
mov ebx, edi
jmp 0x46bb36
mov ecx, 9
call fcn.00426cc9
mov esi, eax
lea edx, [esp + 0x74]
mov ecx, eax
call fcn.00426dab
jmp 0x46bc31
cmp ecx, 6
jne 0x46bb6f
mov ecx, 9
call fcn.00426cc9
mov esi, eax
mov ecx, eax
mov edx, str.send_stream_capacity_unexpectedly_closedmain.rs_srcioutilwrite_all.rs
push 0x28
call fcn.00426d31
add esp, 4
jmp 0x46bc29
xor ecx, ecx
inc ecx
jmp 0x46bc2b
mov edi, ebx
lea ebx, [esp + 0x8c]
mov byte [ebx], cl
lea edx, [esp + 0x11]
movzx ecx, word [edx]
mov word [ebx + 1], cx
mov cl, byte [edx + 2]
mov byte [ebx + 3], cl
mov dword [ebx + 4], eax
movups xmm0, xmmword [edx + 7]
movups xmmword [ebx + 8], xmm0
mov ecx, 9
call fcn.00426cc9
mov esi, eax
mov ecx, eax
mov edx, ebx
mov ebx, edi
call fcn.00426dab
jmp 0x46bc29
cmp eax, 5
jne 0x46bc02
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x10]
mov byte [ecx], 2
mov dword [ecx + 4], eax
jmp 0x46bc06
mov ecx, ebx
xor edx, edx
call fcn.00461526
cmp dword [ebx + 0x10], 0
je 0x46bc10
cmp dword [ebx + 0x18], 0
je 0x46bc20
mov byte [ebx + 0x20], 1
jmp 0x46b929
mov ecx, ebx
mov edx, edi
call fcn.00460808
jmp 0x46bc27
lea ecx, [esp + 0x10]
mov byte [ecx], 3
mov byte [ecx + 1], al
call fcn.0047eea3
jmp 0x46bc27
xor esi, esi
jmp 0x46bc29
lea ecx, [esp + 0x5c]
call fcn.0047eea3
jmp 0x46b957
mov eax, dword [ebx + 0x18]
push dword [ebx + 0x14]
call dword [eax + 0x14]
add esp, 4
test al, al
je 0x46bbd9
mov ecx, ebx
call fcn.00460a0c
mov esi, eax
xor ecx, ecx
mov al, 1
test ecx, ecx
jne 0x46bc57
mov ecx, ebx
call fcn.0045f461
mov eax, dword [esp + 0x28]
mov dword [eax], 0
test esi, esi
je 0x46bc55
lea eax, [esp + 0x10]
mov dword [eax], esi
push eax
call fcn.004691d4
add esp, 4
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x4f686c
mov edx, 0x36
push 0x4f68a4
call fcn.004cf119
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x18]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], cl
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x4f5bac
push 0x4f5eb0
lea eax, [esp + 0x34]
push eax
call fcn.004cbc80